Jump to content

Probleme with timer


AbdSab
 Share

Recommended Posts

Hi all;

 

I have a little probleme with the timer:

generator[id] = enemyGenerators.create(i*32,j*32,'eGenerator');generator[id].timer = this.game.time.events.loop(1500, this.addEnemy, this);

So i want from to give to the timer function the x, y  parametres, but i don't know how, because i can't write like that:

 

generator[id].timer = this.game.time.events.loop(1500, this.addEnemy(generator[id].x,generator[id].y), this);

Is there any solution please ?

 

And thank you all very much :)

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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