actionscript

yo guys, im in need of some help with actionscript. Any experts here, or a tip were i could find them?. thx in advance






Comments
17
uh whut? cg_autoaction or what?
only AS 2.0 and only basics... I learnt it from a book and a lot of practise-experience but there are a lot of tutorials on the web though the ones I tried were a bit amateuristic.

e.: might be I could help you but depends what the problem is :P
what i have to make is pretty basic i think. its with lines and bouncing ball. ik heb het zover dat de ballen tegen elkaar en de wanden stuiteren. Ik moet nog twee dingen dat zijn; dat de lijnen draaien en meedere lijnen en ballen met behulp van array of een for loop. Enig idee?
Parent
nope :( heb al tijdje niet meer met AS gewerkt en ben nu bezig met php dus haal alles door mekaar ben ik bang, ik heb alleen wat basic functies geschreven achter een paar buttons of input shizzle.. en dan ook alleen met AS 2.0
Parent
What do u need to know for Actionscript?

and do u mean AS2 or AS3?
as3, i need to make a program with bouncing balls. Im so far that the balls are bouncing with eachother and with wall. But i need the wall to rotate with a rotation matrix. And having multiple balls/walls with an array and for loops. Any chance you could help me?
Parent
multiple Balls / Walls, create on object of a Ball and a Wall. then have an array of instances of the balls. that way u are creating multiple instances of the original ball.

i dunno about rotation matrix, but u can move the walls using velocities?

hope tht helps
Parent
thanks, but i really suck at actionscript sadly enough:P
Parent
lol making an array is simple and u shud know how to do that.
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
Parent
mmm i should know indeed :) i have
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? :(
Parent
well ud want to create the array

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)
}
Parent
cant get it to work yet.

(then put your ball object), should i put just the name of my object in there?
Parent
i cant remember the exact syntax for pushing an object into an array element but you should be able to find it on google.
Parent
ok thx will try to find
Parent
cg_autoaction 1
Back to top