More performance friendly

bluebyu25bluebyu25 Member Posts: 500
edited November -1 in Working with GS (Mac)
Hey guys what do you think would be more efficient for the game engine?

Im spawning zombies, and waves get harder.

Should I A) Have a self.attribute that says when self.hit is 1 then die. And as the game gets harder (when game.score > 500 for instance) say when self.hit is 2 then die.

Or

B? As the waves get harder, spawn in a different zombie actor that states when self.hit is 2 then die, so that way the actor doesnt have to check for a ton of rules to die.

Thoughts, better approach? Lemme hear it.
Sign In or Register to comment.