Just felt like sharing guys:3
--------------------------------------
------
onClipEvent(load){grav = 1;speed = 0;_root.score = 0;
}
onClipEvent(enterFrame){
if(this._rotation > 0){
this._rotation-=4;
}if(this._rotation < 0){
this._rotation+=4;
}
}
onClipEvent(enterFrame){
if(speed > 0){
speed--;
}
if(speed < 0){
speed++;
}
if(grav < 0){
grav++;
}
}
onClipEvent(enterFrame){
grav++;
this._y+=grav;
this._x+=speed;
this._rotation+=rotate;
rotate = (speed);
}
onClipEvent(enterFrame){
if(grav > 30){
grav =30;
}
if(grav < -30){
grav = -30;
}
if(speed > 30){
speed = 30;
}
if(speed < -30){
speed = -30;
}
if(Key.isDown(Key.UP)){
grav-=3;
}
if(Key.isDown(Key.LEFT)){
speed-=2;
}
if(Key.isDown(Key.RIGHT)){
speed+=2;
}
}
onClipEvent(enterFrame){
if(this._x < 0){
this._x = 0;
speed = speed - (speed *2);
}
if(this._x > 550){
this._x = 550;
speed = speed - (speed * 2);
}
if(this._y < 0){
this._y = 0;
grav = grav - (grav * 2);
}
if(this._y > 400){
this._y = 396;
grav = grav - (grav * 2.2);
}
GotTheBlues
Where is that usable?
masterguy-1243
In Flash