Jump to content

How do I rotate the children in a group?


user1234
 Share

Recommended Posts

I did this to clone my image

asteroidsgroup = 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

 Share

  • Recently Browsing   0 members

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