Jump to content

game.add.group() - individual items positions in update function


Recommended Posts


if I have

intruders = game.add.group();

in create() functions,

and next I created eg. 3 items for(var i=0;i<3;i++) { intruders = game.add.sprite(100*i, 500, 'intruder'); }

- how I can set individual move animation position in upadate function?


I know how to do it in array,
but I do not know if there will be optimally with phaser objects/functions
Link to comment
Share on other sites


  • Recently Browsing   0 members

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