user1234 Posted May 11, 2014 Share Posted May 11, 2014 I did this to clone my imageasteroidsgroup = game.add.group(); for(var i=0; i < numOfAsteroids; i++) { asteroids = asteroidsgroup.create(game.world.randomX, game.world.randomY, 'asteroid'); }now I want rotate each I tried this ..asteroids.angle -= 2;but that rotates and one and I want them all to rotate. Link to comment Share on other sites More sharing options...
Pedro Alpera Posted May 11, 2014 Share Posted May 11, 2014 You can use setAll: http://examples.phaser.io/_site/view_full.html?d=groups&f=set+All.js&t=set%20All Link to comment Share on other sites More sharing options...
user1234 Posted May 12, 2014 Author Share Posted May 12, 2014 thanks! Link to comment Share on other sites More sharing options...
Recommended Posts