Animation not finishing

0 favourites
  • 4 posts
From the Asset Store
Ninja char for your game! Make your own Shinobi game with this art.
  • Firstly, is this even where I post this? Apologies if not.

    Secondly, I'm new to Construct 2 but am loving it so far, however I have a problem.

    I made a "punch" animation for my sprite (this is a platforming style game), and have it set so left mouse click = punch animation start. I want the character to stop moving for the "punch" animation, so I made the PlayerBox (tied to the sprite) star ignoring input on animation "punch" playing, then wait .8 seconds and resume taking player input. This all works fine and dandy except, that, if I am moving while I hit "punch", the animation does not finish. It does about half of it then returns me to the "idle" animation until I do something (after the .8 expires.) Did I do something wrong? Is there a way better way to accomplish what I am trying to do?


    <img src="" border="0" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Event 29 is tested and executed every tick when the "punch" animation is playing.

    Hard to say for sure without the capx, but I'd try setting the start of ignoring platform user input in the left click button event (25) and put the "stop ignoring" in the On animation "punch" finished (event 26).

    In logic, it would prevent any type of input of the player during the animation and wouldn't stack actions (that's pretty much what the "wait" action does as explained in this tutorial).

    This solution may not suit you but in that case you would need to give more precisions about the control system you're wanting to do exactly to see what solutions may be applied.

  • Alright, I found a solution, thank you for you information!!

  • srry for necro post but I am using the same logic only for teleport action

    Basically i have it set-up to on to hit portal start animation with wait time of 0.5 but player does not teleport even though I have it on ? Is the wait time causing it to fully stop ?

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