PDA

View Full Version : Arieal Attcks not working (key conflictions)



kingofnukes
September 1st, 2006, 12:37 AM
Hi, I'm working on a character class and im having a few problems.

My class was working fine untill i noticed when my MC's inside the Char MC weren't animating.

After noticing that, I rearanged my code to change the priority of action around to accmidate the nessicary attacks/actions.

I finnaly fixed them all myself excluding the arieal attacks.

Can someone please help me orginaze my code to get the arieal attacks working.

My class:
http://lightning-1.com/Personal/Kingofnukes/Charclass.as

Coding on character

ActionScript Code:

// Set Key Up command to prevent false attacks //
onClipEvent (keyUp) {
//Remove "Double Slide Glitch"
if (slide=true && speedDecrease>1) {
walking = false;
dashing = false;
keyLeftTimer = 100;
keyLeftIsUp = false;
keyRightTimer = 100;
keyRightIsUp = false;
}
if (speed == 0) {
slide = false;
walking = false;
dashing = false;
gotoAndPlay("idle");
}
if (Key.isDown(Number(ord("S")))) {
attacking = true;
if (speed == 0) {
slide = false;
walking = false;
dashing = false;
gotoAndPlay("idle");
}
} else {
attacking = false;
if (Key.isDown(Key.RIGHT)) {
speed = 0;
slide = false;
} else if (Key.isDown(Key.LEFT)) {
speed = 0;
slide = false;
}
}
}





Thanx for any and all help:thumb:

Joppe
September 1st, 2006, 09:46 AM
What exactly is happening? Could you post an .swf or fla or something?

kingofnukes
September 1st, 2006, 11:00 PM
http://lightning-1.com/Personal/Kingofnukes/OOP.fla

thats the .fla , you'll need the class for it to work too (first post) :pleased:

kingofnukes
September 4th, 2006, 05:56 PM
*Bump*

InfestedDemon
September 4th, 2006, 06:15 PM
what the hell is this bump thing, i see it all over the internet but WTF man?

kingofnukes
September 4th, 2006, 10:37 PM
Do you seriously not get the conceot of bumoing or are you being sarcastic?:ponder:

SacrificialLamb
September 4th, 2006, 11:18 PM
bump is to bump it to the top so it will get renewed attention incase there are new people around that know an answer or people that missed it the first time. Some times used if the topic of the post has become relevant agene or if it’s a useful FAQ like thread that has not yet been made sticky by an admin.

Some places it’s frowned upon or at lest unwelcome by regulars that probably had seen it the first time. but less so than reposting the same question

kingofnukes
September 5th, 2006, 10:38 PM
So i guess this thread is dead then? :(