vendredi 29 mai 2015

AS3 Game spawn mechanics

I am currently working on a game with a friend, and i need some help with some code... In my game i want to make balls appear on the screen, but in a specific order, so i have created lists which will decide where to spawn the balls, and what color. Example:

var a:Array = [["green", "red", "blue", "purple"],
               ["orange", "red", "yellow", "black"],
               ["green", "green", "blue", "pink"]]

The inter dimensional arrays is because of the order i want them to spawn in(starting from the bottom). I have figured out how to spawn all the balls but when they do spawn they spawn on top of each other. Can someone please help me with this? Thanks! (i am making it in flash btw)

Aucun commentaire:

Enregistrer un commentaire