Game Development Community

Different Animations

by Rich Hudson · in Torque X 2D · 09/18/2007 (6:12 pm) · 1 replies

Whats the best way to implement different animations depending on which way the character is facing (or depending on what they are doing). Is it best to put all animations into one sheet and reference the frames depending on which are needed, or is there a way to load different animations sheets depending on what the "player" is doing?

RH

#1
09/19/2007 (6:58 pm)
There are a ton of ways to solve this problem. The Platformer Starter Kit uses a specialized finite state machine to swap Animation Data on a single Animated Sprite.

In regards to the multiple sprite sheet question: you can have two Animation Data objects using the same material, but you can't have one Animation Data object using two separate materials. In other words, each T2DAnimationData can only use frames from a single texture, but you can use one texture to create multiple different animations.