I am working on 2D shooting in LibGdx. I should mention that I am new to LibGdx and I am trying very hard to understand how this works. I have had programming experience in Java and Android for several years, so I understand the concepts of the game.
I am wondering if there is a way to disappear from the sprite object.
I have enemies on the screen, and when the enemy is dead, I want to remove the Enemy object from my list and ignore it inside the calculations and intersection logic.
But I want the enemy sprite to stay on the screen a little longer and slowly disappear.
Is there a good way in LibGdx to handle this ... or do I need to draw additional "fade out" frames ... and process it inside the animation ...
Is there a built-in function that supports this view?
Tnx a lot! I need someone to clarify this for me before starting a brainstorming session and losing my life when drawing sprites.
Veljko
source share