User Guide
750 Chapter 14: Properties
Example
This idle handler displays the elapsed time for sound channel 4 in a field on the Stage
during idles:
-- Lingo syntax
on idle
member("time").text = string(sound(4).elapsedTime)
end idle
// JavaScript syntax
function idle() {
member("time").text = sound(4).elapsedTime.toString();
}
See also
currentTime (Sprite), Sound Channel
emissive
Usage
member(whichCastmember).shader(whichShader).emissive
member(whichCastmember).model(whichModel).shader.emissive
member(whichCastmember).model(whichModel).shaderList{[index]}.\
emissive
Description
3D #standard shader property; adds light to the shader independently of the lighting in the
scene. For example, a model using a shader whose
emissive property is set to rgb(255, 255,
255)
will appear to be illuminated by a white light, even if there are no lights in the scene. The
model will not, however, illuminate any other models or contribute any light to the scene.
The default value for this property is
rgb(0, 0, 0).
Example
This statement sets the emissive property of the shader named Globe to rgb(255, 0, 0).
Models using this shader will appear to be illuminated by a red light:
member("MysteryWorld").shader("Globe").emissive = rgb(255, 0, 0)
See also
silhouettes
emitter
Usage
member(whichCastmember).modelResource(whichModelResource).\
emitter.numParticles
member(whichCastmember).modelResource(whichModelResource).\
emitter.mode
member(whichCastmember).modelResource(whichModelResource).\
emitter.loop
member(whichCastmember).modelResource(whichModelResource).\
emitter.direction
member(whichCastmember).modelResource(whichModelResource).\
emitter.region