Jump to content

Do something every 5 secondes.


Recommended Posts



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


  • Recently Browsing   0 members

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