Explosion Animation issue.

CaptFinnCaptFinn Member Posts: 1,828
edited November -1 in Working with GS (Mac)
My enemy is traveling toward my hero. Hero shoots at enemy. Enemy is hit by bullet. Ok here is where the problem comes in. Actually 2 problems but I can live with one of them.

Problem 1: When enemy is hit enemy points are given and enemy turns into explosion animation. Animation still travels forward while animating than disovles. And since animation is still traveling foward like the enemy was. if animation of explosion touches hero hero take health damage. should let enemy get that close anyway. This I can live with.

Problem 2: While animation is going thru its sequence of pngs, 1-12. If any of these pngs are shot. Animation resets and points are added with each new hit of a bullet.

Comments

  • apps4everyoneapps4everyone Member Posts: 103
    How about spawning a new 'explosion' actor and then destroying your 'enemy' actor when it is hit by a bullet?
  • EdwardFEdwardF Member Posts: 27
    Or adding a rule (inside the rule that sets the animation) that changes the tag of the ship actor from "ENEMY" to "SpFX", so that the bullets no longer trigger a reset?

    This might solves both issues?
Sign In or Register to comment.