Fighting timing

0 favourites
  • 6 posts
From the Asset Store
An educational game for Times Table. An easy to use template for developers to build larger games
  • Hi

    I want to emulate this behavior of fighting games:

    When the player hits the attack button,

    1) the avatar plays a starting animation (during which frames the player is vulnerable)

    2) then the player performs the hitting animation (during which frames, the player is inflicting damage)

    3) then the player performs the cool down animation (during which frames, the player is vulnerable, and cannot attack).

    The starting animation might be 8 frames long, the hitting 10 frames long, and the cool down 12 frames long.

    I?m a little stuck in the implementation. My first theory was to do this:

    <img src="http://s15.postimg.org/cipnfx20r/Screenshot_10.png" border="0" />

    but that doesn?t work.

  • Update: I added a wait event in between animations, and it kinda works. The thing now is that if I press constantly the attack button, the commands start on top of each other, effectively negating the cool down period.

  • check this dropbox.com/s/xbztl89iqlhe5ph/Untitled.png

    that are my events to do a hit combo.

    PD: when i set check to hit i have another event that plays the animation its like:

    +system every tick

    • set animation to "mona_"&check
  • well you need the condition like in the link:

    on d pressed and is animation mona hit playing (reverted), this is important because it will limit the hits when you press d, in other words you will only hit when the animation is finished ,if you know what i mean, i dont know how explain it xD

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • thanks haifisch.

    By the way, why do you disable the platform behavior at the beginning of the hit?

  • that is for my game :P ,i dont want them to move when they hit.

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