fiverivers Posted June 14, 2014 Share Posted June 14, 2014 Hi guys, So I noticed this code - spritePlacement.create(game.world.randomX, game.world.randomY,'badman');It places the sprite 'badman' randomly on the game world. I was wondering how I can spread 5 sprites evenly across the left side of the map? Is there a way to automatically distributed and place the sprites evenly on the left or right side of the screen? Thanks! Link to comment Share on other sites More sharing options...
j0hnskot Posted June 14, 2014 Share Posted June 14, 2014 I don't think there is something like that but you can easily use Group.forEach to assign them coordinates based on the number childs. Link to comment Share on other sites More sharing options...
Recommended Posts