The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.36 / 5.00 33,851 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 12,195 ViewsOkay, my little character in my game has two frames: Standing and Still.
Each frame has a movieclip of my character doing said thing.
Here is a portion of the script:
if (Key.isDown(Key.RIGHT)) {
this._x += speed;
this.gotoAndStop(2);
_xscale = +scale;
}
and
onClipEvent (keyUp) {
this.gotoAndStop(1);
}
however, there is a problem. Occasionally but not always, when I let go of the movement keys she keeps walking on the spot.
I've had three years experience with Flash so there's no need to dumb it down for me.
Thanks in advance!
I hate bumping as much as the next person, but the forum just ATE my thread.
dont know if it will help but try putting the gotoAndStop(2) or whatever it is first in the if statement before the movement command
awww
Try this:
In the end of the "walking movie clip" put the script:
_root.mc.gotoAndStop(1);
mc = character...
I had the same problem in my abandonned game.
I think i did managed to solve it by making a variable "moving" and if it is 0 the character MC goes to idle, if it is 1 it goes to moving animation.
and then i made an Actionscript that sets movement to 1 if the key is pressed, and sets it back to 0 otherwise.
Though i'm not sure if this was the way i did it, i abandonned that project some time ago, because i wasn't able to fix some other errors, and i don't remember, neither can i find it..
THE CAKE IS A LIE