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.
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'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.
Member since 26 Aug, 2020