Enemy AI

I am making a game like super mario and im making a enemy like goomba but he don’t go to the other way when touches the wall
can someone help me?

1 Like

There is a sprite flag called bounce on wall. Pretty self-explanatory.

1 Like

You can use this piece of code:
image
or have bounce on wall on (like @UnsignedArduino said), but sometimes for me bounce on wall doesn’t work correctly.

2 Likes

Thanks

1 Like