Firing peer plays animation if testhit is successful

Get help using Construct 2

Post » Sat Apr 18, 2015 8:41 pm

I want the firing peer to play an animation if the TestHit works. I thought about adding:

peerid= lasthitpeerid play animation


but I can't find any place it would work
B
9
S
2
Posts: 37
Reputation: 729

Post » Sun Apr 19, 2015 4:23 am

Hi,
Can you tell more about your problem ?
What kind of TestHit is it ? CollisionHit or HitScreen ?
Construct 2, an easy way to do great things.
B
18
S
5
G
2
Posts: 43
Reputation: 1,353

Post » Sun Apr 19, 2015 3:45 pm

DjPoke wrote:Hi,
Can you tell more about your problem ?
What kind of TestHit is it ? CollisionHit or HitScreen ?



Collisional, I think. It's when the firing player is overlapping another from a different team and the appropriate button has been pressed by the firing team.
B
9
S
2
Posts: 37
Reputation: 729

Post » Mon Apr 20, 2015 6:09 am

I'm not shure i understand but if the firing team is ennemies guided by A.I, you can set them in a family, an perform a collision event.

The conditions in the Event Sheet must be something like :
Code: Select all
If Player Overlaping EnemyFamily
OnTapObject EnemyFamily
    Start EnemyFamilyAnimation
Construct 2, an easy way to do great things.
B
18
S
5
G
2
Posts: 43
Reputation: 1,353


Return to How do I....?

Who is online

Users browsing this forum: zenox98 and 13 guests