PDA

View Full Version : scale problem



colombianking
June 20th, 2005, 05:32 PM
how do you make it that when you press a key , the mc you have grows until a certain scale


onClipEvent(enterFrame) {
if (Key.isDown(38) & speed >= 20 ){
this._xscale += 20;
this._yscale += 20;
}
}
this is what i have what do i put so that it stops when it reaches a certain scale:toad:

3pinter
June 20th, 2005, 05:45 PM
colombianking,


Have a look at my attached .fla....

Press the left-arrow to increase the x & y scale of the mc until it has grown 400%....



3Pinter
:smirk:

nathan99
June 20th, 2005, 06:00 PM
if not, as i said in your lil game post, i am happy to help you.

nathan99
June 20th, 2005, 06:16 PM
actually 3pinter, ur way is ineffective.


myMc.onEnterFrame = function() {
if (Key.isDown(Key.LEFT) && this._xscale<= 400) {
this._xscale += 5;
this._yscale += 5;
}
};