I was having an issue where moving the enemies was causing a ton of lag. They way I originally did it was by having all the enemies look for players around them every frame and if there was a player near them it would start to move.
I'm now making it the opposite. As the player moves around, it will call the Move() function for every enemy near it. This should make it a lot less laggy:)
No comments:
Post a Comment