damage in air

Get help using Construct 2

Post » Wed Oct 09, 2013 5:04 pm

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.



I have also tried:
- removing that "On moving" condition from the picture
- using "On floor" INVERTED

both don't work eithersgn152013-10-09 17:05:41
B
16
S
7
Posts: 301
Reputation: 2,726

Post » Wed Oct 09, 2013 5:21 pm

Does this give you an idea?

https://www.dropbox.com/s/m9dubqw3rid16m2/hpanimation.capx
Image
B
82
S
16
G
4
Posts: 503
Reputation: 8,978

Post » Wed Oct 09, 2013 5:25 pm

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.sgn152013-10-09 17:26:01
B
16
S
7
Posts: 301
Reputation: 2,726

Post » Wed Oct 09, 2013 5:32 pm

Why are you using r139 and not r146? Anyway, this will start you off. I'm not sure how complex your animations are.


Image
B
82
S
16
G
4
Posts: 503
Reputation: 8,978

Post » Wed Oct 09, 2013 5:37 pm

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)



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-eventsgn152013-10-09 17:38:50
B
16
S
7
Posts: 301
Reputation: 2,726

Post » Wed Oct 09, 2013 5:38 pm

Mind sharing your capx, so I can check it out?
Image
B
82
S
16
G
4
Posts: 503
Reputation: 8,978

Post » Wed Oct 09, 2013 5:42 pm

right now I can't
B
16
S
7
Posts: 301
Reputation: 2,726

Post » Wed Oct 09, 2013 5:50 pm

@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".KazaaMafia2013-10-09 17:52:00
Image
B
82
S
16
G
4
Posts: 503
Reputation: 8,978

Post » Thu Oct 10, 2013 2:32 am

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.
B
16
S
7
Posts: 301
Reputation: 2,726

Post » Thu Oct 10, 2013 4:13 am

Well, I can't fully solve your issue until I have some kind of capx on my end.
Image
B
82
S
16
G
4
Posts: 503
Reputation: 8,978

Next

Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Jackriduk, Tombas and 25 guests