Animation Select Drop Down Box in a Component?
by Sam M · in Torque Game Builder · 04/29/2007 (8:57 am) · 2 replies
You can set up a behavior to have a drop down box with a list of keyboard keys. Is it possible to do the same thing with animation datablocks? Thanks.
#2
%type: The type of field. Valid types are string, int, bool, float, Point2F, enum, object, and keybind. This defines what type of edit field will be used by the editor.
Will there be more types added soon? An "Animation" type would be very useful.
05/03/2007 (11:21 pm)
I think what Sam and I would both like is a dropdown menu of actual animations not objects, I found this list of valid "types" in a behavior template in the TDN:%type: The type of field. Valid types are string, int, bool, float, Point2F, enum, object, and keybind. This defines what type of edit field will be used by the editor.
Will there be more types added soon? An "Animation" type would be very useful.
Torque Owner Luke Larson
Keep in mind this references specific objects in the scene not datablocks so you will just need to create the animated object and add the "template" behavior to it. Give it a name and it should appear in the drop down list.
Let me know if you have problems.