spinnerbox Posted April 3, 2015 Share Posted April 3, 2015 I want custom timer. I make a memory game i.e I have to choose from a set of cards and find all the pairs. So if I pick two non-equal cards my timer should run their closing animation. I did this:cardTimer = new Phaser.Timer(gameObject, false);cardClosingEvent = function () { // doo some stuff cardTimer.stop(false);} cardTimer.add(1000, cardClosingEvent); openCards =function () { // do some stuff cardTimer.start();} if I log the timer object in console, the events subarray is empty. Not sure what it goes wrong. It is like the TimerEvent is removed from the timer after the timer runs once. Link to comment Share on other sites More sharing options...
spinnerbox Posted April 3, 2015 Author Share Posted April 3, 2015 I always ask questions nobody can answer. Sorry I made it work Link to comment Share on other sites More sharing options...
Recommended Posts