Collision problem

Get help using Construct 2

Post » Mon Jan 23, 2012 9:53 am

http://kontinyu.com/de.capx

Hi,
this is my first project. it's remake of the old game "windepth".

what i'm tryinh to achive is when player kills a submarine there will be an "explosion". if another submarine is around explosion zone it should explode too.
so i add a collision detection to explosion.png. ships explode when they collide with explosion animation. thats all good so far.

problem is the original ships - killed by bullets- also colliding with explosion animation (they shouldnt because they are destroyed). it's a problem because i'm trying to give extra experince to player when they kill submarines with chain reactions. and it's not working.


if someone just point the way for me...
B
11
S
1
Posts: 17
Reputation: 649

Post » Mon Jan 23, 2012 10:06 am

add a 'destroyed' boolean to the ships, if you destoy them switch this boolean to true, and then in condition you can do a "on collision + [invert] is destroyed -> launch another explosion and set destroyed to true"
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346


Return to How do I....?

Who is online

Users browsing this forum: jeffige, TheHat, Yahoo [Bot] and 0 guests