OPEN THE *.FLA DOCUMENT OF THE ACTIVITY #33 AND MODIFY THAT CODE, USING THIS ONE AS AN EXAMPLE.
onClipEvent (load) {
fuerza =0.5;
velocidad = 0;
lado = 5;
}
onClipEvent (enterFrame) {
velocidad += fuerza;
this._y += velocidad;
this._x +=lado;
if (this._y>=400) {
this._y = 400-26;
velocidad *= -.8;
}
if (this._x>550-26 || this._x<0){
lado*=-1;
}
}
No comments:
Post a Comment