Collision problem

  • 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...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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"

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