damage in air

  • Hi, I have programmed the damage (while on ground) animation for my character.

    I can't seem to make the damage/hurt animation play for when my character is in air.

    How do you detect when a char is in air?

    I used "on falling" and "on jumping" and the "Fall" animation is not working.

    "Fall" is the animation while falling.

    I want my char to play "Fall" while falling and play "lieDownAndGetUp" animation after landing on the ground.

    The "On landed" condition is not available as a sub-event.

    <img src="http://neuropod.net/imagehost/uploads/3fa42b968c845d1ab29667d9eb1318a0.PNG" border="0" />

    I have also tried:

    • removing that "On moving" condition from the picture
    • using "On floor" INVERTED

    both don't work either

  • Does this give you an idea?

    dropbox.com/s/m9dubqw3rid16m2/hpanimation.capx

  • I can't open. I'm using r139

    anyway, can you post a picture of the involved events? I just need the specific events for my issue. thanks in advance.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Why are you using r139 and not r146? Anyway, this will start you off. I'm not sure how complex your animations are.

    <img src="http://i17.photobucket.com/albums/b71/thedesktops/yo23_zpse85a8fff.jpg" border="0" />

  • hmmm, yours is simpler than mine, but I can't imitate yours because I need to check first if GoonsAttackCLSN (hit box for attacking) collided with PlayerBox.

    I already have a damage for standing (which already works)

    <img src="http://neuropod.net/imagehost/uploads/8a3a858da57244bc32ca32efb6fe4f8e.png" border="0" />

    I just imitated the air version from that and change the on floor to "on falling" and "on jumping" because "on landed" is not available as sub-event

  • Mind sharing your capx, so I can check it out?

  • right now I can't

  • sgn15 -

    Well for one thing, you have your "Players" in a family, which is probably why you can't see "On Falling" and "On Jumping" as sub-event.. Use the separate entity instead for doing "On Falling" and "On Jumping".

  • No. You misunderstood me. I said I can use "On Jumping" and "On falling" as sub-events as you can see from the pic

    "On landed" is not available as sub-event.

    I tried only using "On moving" and run the layout, the fall animation works for Players family. But I was walking, not jumping in the game when the fall animation work.

  • Well, I can't fully solve your issue until I have some kind of capx on my end.

  • just a question, in your picture, why do you play "JumpDamage" animation when the player is "platform on jump"?

    jumping automatically damages your player?

  • <img src="http://neuropod.net/imagehost/uploads/1accf8cac95e19d1280e2d0aa7ee01db.png" border="0" />

    I made it to work!

    but....

    I want to make the player go backwards a bit (vector x) and go upwards a bit (vector y). Already did it.

    Then, the player will go to "bounce" animation, then "LieDownGetUp" animation, then go to "Stance" animation.

    The circled part, sometimes WORKS, sometimes it DOESN'T.

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