universaljs Posted December 18, 2015 Share Posted December 18, 2015 Helloif I haveintruders = 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 More sharing options...
drhayes Posted December 18, 2015 Share Posted December 18, 2015 Any Phaser function that does anything to the whole group is using a for loop over the array. Can't get more optimal than that. universaljs 1 Link to comment Share on other sites More sharing options...
Recommended Posts