i want to make it so when the movieclip moves (arrow keys) closer to the top it gets smaller and moves slower, and when it gets to the bottom it gets bigger and moves faster.
Here is a working code I have, but I need to think of something better.
Actionscript Code:
if (this._y < 700){
this._xscale = 120;
this._yscale = 120;
_level0.speed = 3.6;
}
if (this._y < 650){
this._xscale = 115;
this._yscale = 115;
_level0.speed = 3.4;
}
if (this._y < 600){
this._xscale = 110;
this._yscale = 110;
_level0.speed = 3.2;
}
if (this._y < 550){
this._xscale = 105;
this._yscale = 105
_level0.speed = 2.8;
}
if (this._y < 500){
this._xscale = 100;
this._yscale = 100;
_level0.speed = 2.6;
}
if (this._y < 450){
this._xscale = 95;
this._yscale = 95;
_level0.speed = 2.4;
}
if (this._y < 400){
this._xscale = 90;
this._yscale = 90;
_level0.speed = 2.2;
}
if (this._y < 350){
this._xscale = 85;
this._yscale = 85;
_level0.speed = 2;
}
if (this._y < 300){
this._xscale = 80;
this._yscale = 80;
_level0.speed = 1.8;
}
if (this._y < 250){
this._xscale = 75;
this._yscale = 75;
_level0.speed = 1.6;
}
if (this._y < 200){
this._xscale = 70;
this._yscale = 70;
_level0.speed = 1.4;
}
if (this._y < 150){
this._xscale =65;
this._yscale = 65;
_level0.speed = 1.2;
}
if (this._y < 100){
this._xscale =60;
this._yscale = 60;
_level0.speed = 1;
}
the only problem with this is that it is by 50's. I figure I would need a formula
Can any one point me into a direction?