Jump to content

Pass argument to time event function callback?


kstamatov85
 Share

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

 Share

  • Recently Browsing   0 members

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