QUICK NAVIGATOR
PRODUCTS
TECHNOLOGIES
DEVELOPMENT TOOLS
* News
* Java Media Framework
* Intel Animation for Java
* Intel Spatial Audio for Java
* Runtime Software License
* SDK Software License
* System Requirements
* Download Area
* Documentation Online
* Gallery
* General FAQ
* Support Information

[INTEL NAVIGATION HEADER]

Intel Animation for Java* Package Tutorial

Putting It All Together: Part 1



This applet combines all that has been covered in the previous lessons. Elvis is a DynamicDataSprite with three AnimImages: a walk sequence, a wave sequence, and a standing image.

Click the Wave button to make Elvis wave. This is done by changing the AnimImage to the wave sequence (Elvis.setData(WaveSource)) and adjusting the current image (Elvis.adjustCurrentImageNumber(1)).

Click the Left or Right button to make Elvis walk. The animation is done as described above. The movement is done by getting Elvis's position (pos = Elvis.getPosition()), modifying the position (pos.x = pos.x + DELTA), and setting Elvis's position (Elvis.setPosition(pos)).

Previous Lesson Tutorial Contents Next Lesson

View Source

 

This page was last updated on Feb 11th, 1997.

Legal Stuff

Free Web Hosting