Hi everyone,
So I'm having some NPC walking around on specific paths. However they also happened to have a secondary page when some event occurs.
My issue is that when they come back to the first page after the event they restart their movement from the start, meaning if they already moved 3 steps down they are gonna do it again and then move out of their original paths.
To fix that I tried using some pathfinding plugins, however I found that having multiple NPC walking around on a pathfinding is very heavy for the game and makes some lags.
So is there an other method ?
And on an other topic, is it possible to have them trigger a touch event when they touch the player (they are parallel event already so I can't have both) ? Basically what I want if that if they bump in the player they have a reaction, so maybe something that checks the distance with player ? Any ideas ?
So I'm having some NPC walking around on specific paths. However they also happened to have a secondary page when some event occurs.
My issue is that when they come back to the first page after the event they restart their movement from the start, meaning if they already moved 3 steps down they are gonna do it again and then move out of their original paths.
To fix that I tried using some pathfinding plugins, however I found that having multiple NPC walking around on a pathfinding is very heavy for the game and makes some lags.
So is there an other method ?
And on an other topic, is it possible to have them trigger a touch event when they touch the player (they are parallel event already so I can't have both) ? Basically what I want if that if they bump in the player they have a reaction, so maybe something that checks the distance with player ? Any ideas ?