How do I make an animation play on collision?

Get help using Construct 2

Post » Mon Sep 14, 2015 3:27 am

I'm basically trying to do the following:

- Pressing a combination of buttons fires a projectile (part of the EnergyRelease Family)

- Upon collision with an enemy (a sprite of the Enemy family) an entity is created at the point, and plays its animation (I wanted associated effects with it, but I'm currently having this problem) depending on various variables.

Currently everything is set. I've checked and the 2 objects are colliding properly. The variables are working correctly. But it doesn't register the animation unless more than one projectile in a row is fired, and I'm not sure what I'm doing wrong.

I'm preparing a Capx, but does someone know a way of solving this?
B
10
S
2
Posts: 36
Reputation: 1,274

Post » Mon Sep 14, 2015 3:39 am

https://dl.dropboxusercontent.com/u/12519315/Game%20Project%20issues/MomentPOC.capx

Link to capx. All you need to do is move to the right of the enemies and press left on a keyboard to fire the projectile at them and see what i mean. The number at the top (in the center) signifies the number of collisions the brown enemy has registered
B
10
S
2
Posts: 36
Reputation: 1,274

Post » Mon Sep 14, 2015 9:23 am

Hey there,

I will check and try to help you later tonight. Don't have construct 2 avaiable right now to check on your project.
B
14
S
5
G
1
Posts: 32
Reputation: 1,038

Post » Tue Sep 15, 2015 1:07 am

Thank you for your willingness to assist Kribzy
B
10
S
2
Posts: 36
Reputation: 1,274

Post » Wed Sep 16, 2015 9:18 pm

Does anyone have the answer to this problem?

Edit*: He asks and then realizes that the problem is for an entirely different reason.
B
10
S
2
Posts: 36
Reputation: 1,274


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests