Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Pass argument to time event function callback?


Recommended Posts

Hi guys, I'm trying to pass a agrument to a callback function from a time event. Unfortunately I cant figure it out how.

var bullet = this._bulletGroup.getFirstDead();this.time.events.add(1100, this.splashBullet, this);

How to pass the 'bullet ' object to splashBullet function? it is not part of 'this' scope.


Link to comment
Share on other sites


  • Recently Browsing   0 members

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