A simple question
by Christopher Hernandez · in Torque X 2D · 06/23/2007 (9:14 am) · 1 replies
Hey all.
I have an animated 2d sprite in TGXB that is just a simple countdown 10 - 0. I would like it so that you can control which frame the animation is on by the user simple pressing either the up or down arrows on the keyboard.
What needs to be done in C# so that the code I am writing recognizes the animated sprite in TGXB and can also control which frame of the animation it is currently on?
Do I need to give it an "object type" in TGXB, or does it need a "name" under scripting in order to refer to it in C# code?
I have an animated 2d sprite in TGXB that is just a simple countdown 10 - 0. I would like it so that you can control which frame the animation is on by the user simple pressing either the up or down arrows on the keyboard.
What needs to be done in C# so that the code I am writing recognizes the animated sprite in TGXB and can also control which frame of the animation it is currently on?
Do I need to give it an "object type" in TGXB, or does it need a "name" under scripting in order to refer to it in C# code?
Torque Owner Dan Maruschak