Report as inappropriate.
GIFAnimation
Similar to mik's AnimatedActor demo, but this time you can just create an animated actor by calling setImage() and providing GifActor with an animated GIF file.
Speeed is no longer solely dependant on the speed of the slider. The animation will always "try" to run at the speed specified in the gif file. So if it's sped up to faster than this, it will still run at the same speed.
If it's slower, then it will just run as fast as it can - it can only update its image as fast as the scenario is running.
UPDATE:
- GifActor now also looks in the images folder for the GIF image (as well as the main folder previously)
- If the image can't be found a better error message is given (before it was just a NPE, now it states it can't find the image.)
- Changed setSimulationSpeed to setSpeed in the source to update it to the "new" API (though it's not that new now!)
If you just want the source of GifActor, see the URL.
6786 views / 32 in the last 7 days
5 votes | 0 in the last 7 days
This scenario is a member of: Reusable actors & support classes
Visit the web page for this scenario.
Want to leave a comment? You must first log in.
2008/10/22
2010/2/14
2010/3/14
2010/7/6
2010/7/6
2010/7/6
2010/9/17
2011/12/17