Is there some kind of For(x seconds) function?

  • I have a simple animation trigger that goes something like this:

    When Player Platformer is falling -> Play Jump animation at frame 1

    -When Input pressed -> Play Jump animation at frame 2

    (A setup for playing a certain frame for jumping while in the air)

    However since the mid-air firing animation plays when the input is pressed, it only shows the firing animation as the button is pressed. Since it's a sub-event of the player falling it just goes back to the falling animation after a milisecond of the button being pressed. As you can imagine this is not my desired effect.

    I want the mid-air animation to play when the player is in the air and fires the firing button, but for about a second for every time the firing key is pressed. I figured I could get this done with triggering a Boolean value and have that Boolean value make itself false after a wait command, but I feel like an easier workaround probably exists.

  • Can you post a capx?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Have you try "Trigger Once While True" yet ?

    or maybe you can add "Animation Frame 2 is not playing" to the "When Player Platformer is falling"

    and as TheDom said it would be easier to help if you post with capx file.

  • Can't help thinking the Timer behaviour might come in handy there

  • Have you try "Trigger Once While True" yet ?

    or maybe you can add "Animation Frame 2 is not playing" to the "When Player Platformer is falling"

    and as TheDom said it would be easier to help if you post with capx file.

    I think this + another solution that I found out is making it work. I'm going to run some additional tests and post the results later. Thanks!

    I don't think the Timer will work but I'll try to see if that helps too.

  • General J

    Good luck man, I'm wating to see the game that you are working on.

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