Temporary animations
Posted
by
Max
on Game Development
See other posts from Game Development
or by Max
Published on 2012-09-11T20:50:47Z
Indexed on
2012/09/11
21:50 UTC
Read the original article
Hit count: 154
I've been trying to find a tutorial on how to best make animations in Android. I already have some animations for my enemies and my character that are controlled by rectangles and changing rectangleframe between updates using a picture like this:
When I'm shooting my enemies they lose HP, and when their HP == 0 they get removed. aslong as im using an arrayList (which I do for all enemies and bullets) I'm fine, since I can just use list.remove(i)
. But when I'm on a boss-level and the Boss's HP == 0, I want to remove him and play an animation of an explosion of stars before the "End-screen". Is there a preferred way to do temporary animations like this?
If you can give me an example or redirect me to a tutorial, I'd be really grateful!
© Game Development or respective owner