Game Development Reference
In-Depth Information
Scene properties
The Toon3D movie has properties at global scene level which can be read
and set. These properties relate to frame navigation and the background
colour.
To set and get global scene properties the following syntax is used:
Set property (scene, propertyname ) = propertyvalue
Get property (scene, propertyname )
Table A.2
propertyname
propertyvalue
startframe
Start frame of current play segment
endframe
End frame of current play segment
currentframe
Current frame of current play segment
bgRed
Red value of background colour (0-1)
bgGreen
Green value of background colour (0-1)
bgBlue
Blue value of background colour (0-1)
Example
When the current frame of the movie reaches frame 50 it will go to play the
frames from 100 to 200 starting at 150, and set the background colour to
black.
On NewFrame
If (Get Property (scene, currentframe)) = 50
Set Property (scene, startframe) = 100
Set Property (scene, endframe) = 200
Set Property (scene, currentframe) = 150
Set Property (scene, bgRed) = 0
Set Property (scene, bgGreen) = 0
Set Property (scene, bgBlue) = 0
EndIf
End NewFrame
Variables and arrays
TScripts support the use of variables and arrays for storing and retrieving
numerical and string data.
 
Search Nedrilad ::




Custom Search