Explosion Animation issue.
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.
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
This might solves both issues?