Well I am making a fighting game and I have it set so that when I press the button, the character changes direction. easy enough, I suppose… I right now have inside the main character clip a set of other clips in seperate frames, so I can just say:
if(Key.isDown(39)) {
this.gotoAndStop(2);
this._x += 25;
}
I did this with both sides, basically just had frame2 be walking right, and frame 3 be walking right flipped physically…
but can I simply flip it with AS? I mean, it gets complicated when there is jumping, cause then I have to check if he is jumping and in which direction he is facing, and then play one of two jumping clips, and what if he turns in mid air? Flying backwards doesn’t look all that great
AND when you fight usually in games, you always face the opponant, so a direction set onEnterFrame would work best, I think… but how can I do this? Every time I attempt it, I get all frazzled and can’t get it right… all I can think of is ._rotation, but that won’t work… changing the width to be the negative of current width maybe? Ugh… anyone have ideas?
thanks…