I'm wondering what's the best way to set up a pathfinding enemy is. currently mine are very laggy and buggy. the main bug currently is them not moving to the left past a certain point. also, they reduce the players health very quickly but that's not my main concern. and would love to have the be able to move diagonally but they get stuck on corners. and they very quickly make the game laggy.
Move the trigger events, the ones with the green arrows, into their own individual events to see if that changes anything. As for not moving left past a certain point there's no context I don't know how I can help with that.
Develop games in your browser. Powerful, performant & highly capable.
lionz
moving them to their own events has not seemed to change much it is still very laggy any time I approach them.
I've seemed to have fixed the lag by adding an every 2.5 seconds to the has LOS to player condition. however, the movement is still buggy. some time the enemy will not see you in its detectable range or follow you.
Doesn't sound like a bug because you are checking if it has LOS every 2.5 seconds