Hey guys, spent the last week making a new Cutie model. If you can’t tell I’m a hips and butt guy.
It’s still a work in progress but I’m pretty happy with it so far. Need to work on the running animation a bit more and I think I might add more to the attack movieclip. Tell me what you guys think.
A=attack, Up =jump, down= duck, down in the air= ground stab, S=air stab, left/right= move
Also I have a question for those with knowledge of AS2. There are two things I’m trying to do.
1St I need to stop her from sliding while she attacks.
2nd While jumping I want her to do an air attack using the same key as her regular attack (A).
Now I thought I had it when I figured out how to get her to move from a crouch straight to the running movie clip but I can’t seem to apply that code to this specific issue.
I found that along as I use the arrow keys in the code it works great but the second I try to use a letter key it won’t work. For example:
onClipEvent (enterFrame) {
if ((_currentframe == 3) and (Key.isDown(Key.DOWN))) {
gotoAndStop(10);
grav = 25;
} else if ((Key.isDown(Key.DOWN)) and (!touchingGround)) {
this.gotoAndStop(7);
}
}
With this code when she is in her jumping movie clip (3) and the down arrow is pushed she will stab downward (10), stop when she hits the ground and will stay in that position until I push an arrow key making her go to the running movie clip. I’ve tried replacing the down with the attack button and air attack MC but it won’t work.
onClipEvent (enterFrame) {
if (Key.isDown(65)){
attacked = true;
this.gotoAndStop(4);
}
}
onClipEvent (enterFrame) {
if((_currentframe==4)and (!touchingGround)) {
this.gotoAndStop(4);
} else if ((Key.isDown(65)) and (!touchingGround)) {
this.gotoAndStop(4);
}
}
This is the code that I use for attacking (65=A key)(4 = attack frame). I’ve come close to getting it right a few times but no cigar.
Any advice?