Hi again,
I’m currently reading various books on AS 3 and haven’t yet reached the parts that would enlighten me to my question. However, my impatient side is getting the better of me right now, so I’ll ask here.
(some background info): I have a stage that’s 450x450. I have a total of 15 movie clips that I want to randomly display on the stage. The problem is that I don’t want the randomized position to be just any number. I need it to be a multiple of 30, as my pieces are 30 pixels wide/tall.
So, how would I write my code so that it knows that the only places one of these movie clips should be placed at is 30, 60, 90, etc.?
I think I need to define an array:
var xPos:Array [30, 60, 90, etc.];
var xPos:Array [30, 60, 90, etc.];
Then somehow randomly pick one of those values in order to display it on the stage…? :puzzle:
I’m not even sure if I’m being 100% clear in my wording as to what I’m trying to do. I hope someone understands.
Thank you in advance