Animation won't play

0 favourites
  • 4 posts
From the Asset Store
Casual Gameplay Music is a royalty free collection of background music tracks and loops.
  • Hi, having a problem here. The shooting animation won't play while the Player speed events are enabled. Is there a workaround for this?

    <img src="http://i.imgur.com/yMv4zL4.png" border="0" />

  • 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 0

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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".

  • 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".

    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)

    <img src="http://i.imgur.com/7oSb1PE.png" border="0" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)