Skip to main content

animation help

1 reply [Last post]
myinstinct
Offline
Joined: 2008-10-24
Points: 0

I have a simple form using BoxLayout.Y_AXIS - using setBgImage(), it displays static PNG image retrieved from the resource file. Using a touchscreen device, when the user taps that image, I want to start an animation.

the animation images frames are currently an Image[] of 17 PNGs that I want animate in order and once finished stop - no loop at all.

the static image is really just the first image in this 18 frame animation - so it's displayed - when the user taps the image, the animation runs on top of the static img - when the animation is over - the static img remains.

Looking for any ideas on how to implement this - I have considered using something similar to Shai's progress indicator - or maybe a separate class that implements runnable and overrides paint

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
myinstinct
Offline
Joined: 2008-10-24
Points: 0

I figured this out - used the techniques form Shai's ProgressIndicator class