Runtime Sprite Manipulation
by Brandon Haston · in Torque X 2D · 12/22/2008 (10:39 pm) · 3 replies
I have a series of animation sequences for a character and I'm trying to keep the game's size down to a minimum. One of the ideas I have to achieve this is to store only half of the total sprites as physical data.
All sprites face a single direction (left). The idea here is to flip the sprites and save it as as a new animation in memory that the game can then use when the person moves to the right.
I'm not quite sure how I'd achieve this in Torque X though (I'm so used to C++ and heavily reliant on STL :( )
Any thoughts?
All sprites face a single direction (left). The idea here is to flip the sprites and save it as as a new animation in memory that the game can then use when the person moves to the right.
I'm not quite sure how I'd achieve this in Torque X though (I'm so used to C++ and heavily reliant on STL :( )
Any thoughts?
About the author
Torque Owner Vishal Bhanderi