#Following tutorial + complete remake 3x still not working as intended

1 messages · Page 1 of 1 (latest)

fossil yarrow
#

I'm attaching a video and linking a YouTube video.

I'm following this YouTube tutorial up until about 49:55 where he finishes making the slime behaviour https://www.youtube.com/watch?v=LOhfqjmasi0

I've redone everything three times, and it's still giving me this behaviour where the slime is inside the wall as you can see from the attached video, bouncing back and forth. Could it be because Godot has been updated since April, something about collision is different? Or if you've ran into this kind of issue, how did you fix it?

#

First image is my slime code.
Second image is to show that the RayCastRight + Left are in the correct directions (RayCastRight is selected, and you can see the orange dot on the blue arrow is on the right side).

Please feel free to let me know if you want me to post screenshot of anything else.

rocky charm
#

Run the project with Debug>Visible Collision Shapes

#

Check how the raycast detects the wall and when

#

Also, the slimes only change direction when detecting a wall of some sorts to one of their sides. There is nothing preventing them from walking off the edge

fossil yarrow
#

The reason why I mentioned about update is because of this warning I get about tile maps
Here is what my tile map config looks like

fossil yarrow
fossil yarrow
fossil yarrow
rocky charm