Page 1 of 1

Pathfinding problem with custom movement rules.

PostPosted: Thu 6 Dec 2018, 05:29
by robert20
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.

Image

Re: Pathfinding problem with custom movement rules.

PostPosted: Thu 6 Dec 2018, 06:05
by robert20
Sorry for double post, but, can someone move this to the proper forum (GDEVELOP)? thanks.

Re: Pathfinding problem with custom movement rules.

PostPosted: Thu 6 Dec 2018, 12:21
by Lizard-13
Yes, you have to use custom conditions/actions/expressions for pathfinding, check the pathfinding example, is a good guide :)