Animation won't play

Get help using Construct 2

Post » Sat May 18, 2013 3:45 am

Hi, having a problem here. The shooting animation won't play while the Player speed events are enabled. Is there a workaround for this?

B
3
Posts: 5
Reputation: 185

Post » Sat May 18, 2013 3:56 am

give your player an instance variable, say "shoot", then add a shooting is 0 condition to your current movement conditions...

then change space is pressed to set shoot to 1

then trigger your shoot anim off is shoot=1 condition

after shooting animation done, set shoot back to 0Pixel perfick2013-05-18 03:57:40
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260

Post » Sat May 18, 2013 3:57 am

@Locusthorde300

Without seeing your code, I'm assuming the problem is that you are holding down the shoot button and it looks like he is just standing there.

You see that green arrow next to the Keyboards? That means it's a one shot test. It's gonna test for when the Key is first pressed. Instead of using "On key pressed" use "Key is down".
B
10
S
3
Posts: 102
Reputation: 1,888

Post » Sat May 18, 2013 4:37 am

[QUOTE=farmerdwight] @Locusthorde300

Without seeing your code, I'm assuming the problem is that you are holding down the shoot button and it looks like he is just standing there.

You see that green arrow next to the Keyboards? That means it's a one shot test. It's gonna test for when the Key is first pressed. Instead of using "On key pressed" use "Key is down".[/QUOTE]

Thank you, that solved the problem of the player just standing there. But now it will only play the first frame of the animation. (Don't mind the placeholders)

B
3
Posts: 5
Reputation: 185


Return to How do I....?

Who is online

Users browsing this forum: heliogame and 15 guests