Ninjadoodle Posted February 26, 2015 Share Posted February 26, 2015 Hi guys I have a timer with an onComplete function ... clickCheck = function() { console.log(tileSelected); tileSelected = 0;} game.scene.addTimer(250, clickCheck); Just wondering whether there is a way to STOP or RESTART the timer? Thank you in advance for any suggestions 7Game 1 Quote Link to comment Share on other sites More sharing options...
enpu Posted February 26, 2015 Share Posted February 26, 2015 This should world:var myTimer = game.scene.addTimer(1000, function() {});myTimer.pause();myTimer.resume();myTimer.reset(); 7Game 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.