actionscript
•
15 Jun 2010, 14:46
•
Journals
yo guys, im in need of some help with actionscript. Any experts here, or a tip were i could find them?. thx in advance
|
35.2 %
(19 votes)
|
|
64.8 %
(35 votes)
|
e.: might be I could help you but depends what the problem is :P
and do u mean AS2 or AS3?
i dunno about rotation matrix, but u can move the walls using velocities?
hope tht helps
uve obviosuly already created you ball object otherwise u wudnt be able to see it.
myball = new ballObject();
something like that u will have done ??
so do this in a "for" loop and after each 1 place it into the array. so now u have an array and in each element u have an instance of your "ball". this way u can edit each of the balls or have multiple balls on stage etc
balletje = new Ball(new Vector2D(0, 2),new Vector2D(100, 100));
addChild(balletje);
only i forgot how to make an array. i can recall a forloop i think
for(i = 1, i++, i < 10){
balletje = new Ball(new Vector2D(0, 2),new Vector2D(100, 100));
}
maybe? :(
myBalls = new Array();
myballs[10];
then inside ur for loop
ud use ur counter (in your case "i") too traverse through the array
for(i = 1, i++, i < 10){
myballs.push (then put your ball object)
}
(then put your ball object), should i put just the name of my object in there?