Untitled
By: a guest | Sep 9th, 2010 | Syntax:
C++ | Size: 0.89 KB | Hits: 75 | Expires: Never
onClipEvent(load){
xspeed=1;
yspeed=1;
Rotation=5;
}
onClipEvent(enterFrame){
if(this._x<=35){
xspeed=7;
}
if(this._x>=513){
xspeed=-7;
}
if(this._y<=37){
yspeed=7
}
if(this._y>=363){
yspeed=-7;
}
this._x+=xspeed;
this._y+=yspeed;
_rotation+=Rotation;
}