Pathfinding problem with custom movement rules.

Hi,

Ok, so I added some custom movement events to an object, it’s supposed to chase after the player’s tank, and if it’s too close it should stop, then if the player gets near it, it moves back.

The thing is, I tried combining this with pathfinding but the enemy tank acts as if I haven’t set up the pathfinding stuff, I added an object, set it as an obstacle with the behavior option, then I added the pathfinding behavior to the enemy tank. I’m guessing it’s ognoring it because of the movement events I made.

MAybe there’s a way of having both things the pathfinding and the movement conditions I made, or maybe there’s something I forgot to do, like adding an event so pathfinding works.

Thanks.

These are the movement events I made.

Sorry for double post, but, can someone move this to the proper forum (GDEVELOP)? thanks.

Yes, you have to use custom conditions/actions/expressions for pathfinding, check the pathfinding example, is a good guide :slight_smile: