Pause and Resume game?

Pause and Resume game?
0.0 0

#1

Hi there,

As I have read api doc, cc.director.pause() and cc.game.pause() are working differently.
but when I tested, it kinda the same. For me, I want to implement pausing game without button disable or not clickable. I mean button can click to resume the game but all the action like button scaling or changing sprite is not work. Do anybody have an idea how can i do?


#2

implement your own pausing by storing all things that requiring pausing like animations, schedules, etc and stoping them /resuming them on your own trigger(s)

it’s pseudo-pausing, that way you can still use the engine and do what you want in the background