Jump to content

Do something every 5 secondes.


pimous
 Share

Recommended Posts

 http://phaser.io/docs/2.2.2/Phaser.Timer.html#loop 

 

probably more like this:

game.time.events.loop(5000,myfunc,this, parameter);myfunc(parameter)

be aware that if you would write it your way the function myfunc(2) would be triggered immediately because of the () brackets

 

 

or if it's just a simlpe task that is going to be triggered

game.time.events.loop(5000, function(){ do this or that });
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...