Game Development Community

Dynamic variables

by Tasty Green Pees :-, · in General Discussion · 04/18/2006 (10:03 am) · 3 replies

Can anyone please explain what is a dynamic variable and how you go about creating one and adding values to it.

Thanks.

#1
04/18/2006 (10:09 am)
Be the Wiki.

See section 1.3.7.2.
#2
04/18/2006 (10:22 am)
If you are referring to the TGB level builder, then it's just a value that you can assign to an object's dynamic field.
You would create a dynamic field in the level builder, by clicking on your object, clicking the Edit tab and expanding the Dynamic Fields tab. You then type in your field's name, and value. For instance, if I wanted a dynamic colour field, for my object, I could create one called "colour", and assign the value "blue" to it.
I could then access it by doing ObjName.colour or ObjID.colour where ObjName is the name of your object, and ObjID is the ID of your object.

If you are not referring to it, I apoligise.

Edit:
Gah, Rubes. Thanks. :) Yeah, just look at the wiki. :P

I hope that helped,
- Tom.
#3
04/19/2006 (4:03 pm)
Thanks. This has illuminated the issue well.