Jump Attack problem

Get help using Construct 2

Post » Sat Sep 03, 2016 10:51 am

Hello :D. I make a platform game where main character has a lot of animations. For idle, for jump, for fall and several for attacks. I wan't to make some kind of jump attack. I mean something like:

On (attack button) pressed | Set animation to "attackAir"
Platform isn't on floor |

When platform is falling | Set animation to "fall"
Isn't animation "attackAir" playing |

When platform is jumping | Set animation to "fall"
Isn't animation "attackAir" playing |

But it doesn't work and I don't know why :? .

Thanks for all the help.
B
4
Posts: 15
Reputation: 230

Post » Sat Sep 03, 2016 10:59 am

I'm guessing it only plays "attackAir"?

once you push the attack button, it begins playing "attackAir" and doesn't stop.

all the other events are set not to trigger if "attackAir" is playing.. and it is.. so they don't trigger.
B
86
S
43
G
71
Posts: 601
Reputation: 43,619

Post » Sat Sep 03, 2016 11:42 am

No, the "attackAir" animation doesn't even appear. :/
B
4
Posts: 15
Reputation: 230

Post » Sat Sep 03, 2016 7:05 pm

Check out my example.

https://www.dropbox.com/s/7ier3r34lqdqn ... .capx?dl=0

1. When <Space> key is pressed while standing, [Attack] animation is played.
2. When <Space> key is pressed while walking, [Attack] animation is played.
3. When <Space> key is pressed while jumping, [Attackair] animation is played.
4. When <Space> key is pressed while falling, [Attackair] animation is played.
B
11
S
6
G
15
Posts: 256
Reputation: 9,207

Post » Sun Sep 04, 2016 10:40 am

Doesn't work. But if I delete jump and fall animations it works, so I guess the problem is in those two animations.
B
4
Posts: 15
Reputation: 230

Post » Sun Sep 04, 2016 6:11 pm

Better post a link to the capx.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Sat Sep 10, 2016 11:15 am

Nevermind, I've fixed it. That was my foolish mistake.
You can close the topic.
B
4
Posts: 15
Reputation: 230


Return to How do I....?

Who is online

Users browsing this forum: ditocruz, R0J0hound, uzumiapps and 28 guests