Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Ant101

How do you go about stopping the game loop? (E.g. when wanting to stop the game, but stay on the same page)

1 decade ago by KenD

ig.system.startRunLoop() and ig.system.stopRunLoop().
Be aware that this stops all update() and draw() methods, so if you have any in-game UI, it won't work. I have a pause button that's placed outside the canvas, and I have a custom pause() function in my game class that starts and stops the run loop, as well as a few other housekeeping chores.

1 decade ago by Ant101

That's what I was looking for, thanks KenD.

1 decade ago by clliu

This code is not working on Android, any way I can pause the game on Android?

Thanks,
Louis

1 decade ago by clliu

Anyone knows how to pause game in Android? The code is not working. Please help! Thanks!
Page 1 of 1
« first « previous next › last »