Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 2.3

COLUMN

Shape Animation

An animation system based on Object3D's Shape property

Issue: 2.3 (December/January 2003)
Author: Joe Nastasi
Author Bio: Joe Nastasi is the president of Pyramid Design, a software development firm and the developers of A-OK! The Wings of Mercury and FTP Suite.
Article Description: No description available.
Article Length (in bytes): 11,644
Starting Page Number: 38
Article Number: 2318
Related Link(s): None

Excerpt of article text...

In this issue's column we will actually create a simple application to show how the animation system is used. It simply places a figure in the center of a field and allows you to walk him around and throw some punches as well. To round it out, we'll use the animation system to trigger some sounds. I'll only show the highlights of the code here, so be sure to download the demo project.

AnimationClass -- Revisited, again!

It's always something. I added two simple get methods, GetCurrentSequence, which returns the current SequenceClass that the AnimationClass is playing, and GetCurrentPoseSequenceID, which returns an integer that points to the PoseClass currently being displayed. As simple as they are, they will play an important role later.

Setting Up

There are five things that must be defined in order to set up the animation system and its required resources:

...End of Excerpt. Please purchase the magazine to read the full article.