I am making a game, where two zombies will spawn after every three moves my character makes. The problem is that I have no idea how to do this.
I have my character moving correctly, in each key press event, so I want the game to count each time one of these events are triggered, and perform the action after every third trigger. Perhaps I need a global variable/counter that can count these events?
How do I make instances of enemies spawn after every three keypress movements?