When my player dies Touch input is still active.
How do I set it where once a player dies their touch input is no longer recognised?
Thanks all :)
Develop games in your browser. Powerful, performant & highly capable.
You need to put all you touch event inside a group, then when player dies, you deactivate that group.
you can add one more condition with comparing global variable value for each event that triggered by touch.