Game Development Reference
In-Depth Information
Table A.1
propertyname
Value
Applies to
x
x position (m)
object, toon, text, camera, light
y
y position (m)
object, toon, text, camera, light
z
z position (m)
object, toon, camera, light
h
Heading (degrees)
object, toon, camera, light
p
Pitch (degrees)
object, toon, camera, light
b
Bank (degrees)
object, toon, camera, light
scalex
x scale (0-1 (1 = 100%))
object, toon
scaley
y scale (0-1 (1 = 100%))
object, toon
scalez
z scale (0-1 (1 = 100%))
object, toon
size
Size (0-1 (1 = 100%))
object, toon, text
drawwire
Draw the object in wireframe
(true or false). Default is false.
object
frame
Current frame at Toon level
toon
action
Current Toon action name
toon
usekeys
Whether the Toon is under user
control (true or false)
toon
visible
Visibility (true or false)
toon, object, text
parent
Parent of object or light
object, light
red
Red colour value of light (0-1)
light, ambient
green
Green colour value of light (0-1)
light, ambient
blue
Blue colour value of light (0-1)
light, ambient
Green colour value of light (0-1)
tooncam
The user controlled toon with
camera control (toonname).
Set to none for no camera
control with toon.
camera
Setting property values
All the property names in the list in Table A.1 can also be set using the Set
Property command with the following syntax:
Set property (controlname, propertyname ) = value
Example
When the x position of the Toon Ball1 reaches the value 250m, Ball1 is
made invisible and the Action of Ball2 is set to Bounce.
On NewFrame
If (Get Property (Ball1, x)) >= 250
Set Property (Ball1, visible) = False
Set Property (Ball2, action) = Bounce
EndIf
End NewFrame
 
Search Nedrilad ::




Custom Search