Jump to content
  • 0

Monster movement


AxelDeathBR

Question

Hello, I'm a newbie, I'm creating a game, actually studying the engine to learn, I tried everything but the monsters go up and don't come back when they collide, when there is no collision they go up infinitely until they stop at the end of the map, I don't quite understand how this works, it's in random mode, shouldn't there be something to configure this?

image:

9cf654ab11ea447c7a34ff5857f9103b.png

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • -1

Hey AxelDeathBR! I’ve run into similar issues before. In random movement, monsters usually need both a direction change trigger and collision handling code so they bounce back or pick a new direction when hitting something. Check if your event or AI settings have a “Change Direction on Block” option, or look into how your engine handles collision callbacks. Sometimes it’s just one setting that fixes it. Good luck experimenting!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...