I’ve been trying to move a movieclip using actionscript by changing the coordinates of the movie clip
here’s my code
i named the movieclip “bola”
on (release) {
for (t=0; posy != 0; t++) {
posx=(3 * t * Math.cos(60))
posy=(3 * t * Math.sin(60) - 0.5 * 9.81 * t * t)
_root.bola._x = posx
_root.bola._y = posy
}
}
but something’s missing me… because when i press the button the movie moves to position x=0 y=0 and not the projectile movement that i want …
is the for cycle wrong ??
can anyone check what’s wrong with my code ??? :cross-eye