David1Socha / number-nibbler

A basic math-based children's game. Made in the Love2D framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Post-defeat movement

David1Socha opened this issue · comments

If a player has a destination as they are defeated by an enemy, right now they will continue on to that destination despite being defeated and inactive, which doesn't make much sense. Add some check in player's update method to prevent this.

solved by checking if active before each movement