Hi, is there any way to disable touch functions? for example when i pause my game. when i press the directional buttons it still performs the animations and it's driving me insane :p Thx
on pause -> set animation speed to 0
on pause off
-> [menu logic here]
Develop games in your browser. Powerful, performant & highly capable.
As I said in the previous topic you opened about the exact same question.. (Why would you do that?)
Put the events in seperate groups and activate/de-activate those groups based on whether or not the game is paused..
If you put the on touch events for the game in a group, they won't trigger if the group is de-actvated..
TIL about event groups that let you switch groups of game logic on and off at runtime. Very cool, not sure how I've missed this one.