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:
[FONT=Courier New][LEFT][COLOR=#808080]*// Set Key Up command to prevent false attacks //*[/COLOR]
[COLOR=#0000FF]onClipEvent[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#808080]//Remove “Double Slide Glitch”[/COLOR]
[COLOR=#0000FF]if[/COLOR] [COLOR=#000000]([/COLOR]slide=[COLOR=#000000]true[/COLOR] && speedDecrease>[COLOR=#000080]1[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
walking = [COLOR=#000000]false[/COLOR];
dashing = [COLOR=#000000]false[/COLOR];
keyLeftTimer = [COLOR=#000080]100[/COLOR];
keyLeftIsUp = [COLOR=#000000]false[/COLOR];
keyRightTimer = [COLOR=#000080]100[/COLOR];
keyRightIsUp = [COLOR=#000000]false[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#0000FF]if[/COLOR] [COLOR=#000000]([/COLOR]speed == [COLOR=#000080]0[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
slide = [COLOR=#000000]false[/COLOR];
walking = [COLOR=#000000]false[/COLOR];
dashing = [COLOR=#000000]false[/COLOR];
[COLOR=#0000FF]gotoAndPlay[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#0000FF]if[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
attacking = [COLOR=#000000]true[/COLOR];
[COLOR=#0000FF]if[/COLOR] [COLOR=#000000]([/COLOR]speed == [COLOR=#000080]0[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
slide = [COLOR=#000000]false[/COLOR];
walking = [COLOR=#000000]false[/COLOR];
dashing = [COLOR=#000000]false[/COLOR];
[COLOR=#0000FF]gotoAndPlay[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR] [COLOR=#0000FF]else[/COLOR] [COLOR=#000000]{[/COLOR]
attacking = [COLOR=#000000]false[/COLOR];
[COLOR=#0000FF]if[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
speed = [COLOR=#000080]0[/COLOR];
slide = [COLOR=#000000]false[/COLOR];
[COLOR=#000000]}[/COLOR] [COLOR=#0000FF]else[/COLOR] [COLOR=#0000FF]if[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
speed = [COLOR=#000080]0[/COLOR];
slide = [COLOR=#000000]false[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
[/LEFT]
[/FONT]
Thanx for any and all help:thumb: