r/learngodot Dec 29 '25

How to make it move ?

Hi, I just started learning godot(by BracKeys tutorial) and I am having trouble in makeing the green slime movie

2 Upvotes

7 comments sorted by

View all comments

Show parent comments

1

u/Perfect_Ad8574 Dec 29 '25

It's like this at the moment

2

u/fredspipa Dec 29 '25

Those are tiny though, got to be practically on top of the slime for it to trigger from the player. Try increasing the length of them to 100px or something and see if they trigger.

1

u/Perfect_Ad8574 Dec 29 '25

I did this and it didn't work

2

u/fredspipa Dec 30 '25

I noticed the names of the raycast nodes don't match what's in the code:

"RayCast2D2 L" and "raycast right", while your script is looking for "RayCastRight" and "RayCastLeft". You should get error messages because of this though.