Jump to content

Place sprites in certain locations, not randomly?


fiverivers
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

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