Version: 1.0

Posted: 2003-02-25

Build Requirements: N/A

Runtime Requirements: Carbon

View Source Code:

Download Sample (“qtsprites.zip”, 734.0K)
Download Sample (“qtsprites.dmg”, 1.16M)



Description

This sample code has been updated for QuickTime 5.0 This sample code creates a sprite movie containing a sprite track. The sprite track contains three sprites: a space ship, an icon, and a world. Optionally, the track also contains a fourth sprite, a background picture. The space ship and icon move about as the sprite movie plays. This sample code also shows how to test for mouse clicks ("hits") on a sprite. Open a movie containing a sprite track and then click on a sprite; its visibility state is toggled between visible and invisible. 68k or PowerPC (or newer) machines running System 8.5 or later. PC with Intel Pentium or compatible processor. QuickTime 4.0 or later. CodeWarrior Pro 2 or later or Visual C++ 5.0 or later.

Document Revision History

Date Notes
2003-02-25Shows how to create a sprite track that contains three sprites: a space ship, an icon, and a world.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.