MAKE SURE TO ADD THIS CODE TO THE LITTLE BALL. CONVERT IT TO MOVIE CLIP FIRST.
onClipEvent (load) {
fuerza =0.5;
velocidad = 0;
}
onClipEvent (enterFrame) {
velocidad += fuerza;
this._y += velocidad;
if (this._y>=400) {
this._y = 400;
velocidad *= -.8;
}
}
No comments:
Post a Comment