618
spotAngle
Syntax
member(
whichCastmember
).light(
whichLight
).spotAngle
Description
3D property; allows you to get or set the angle of the light projection cone. Light that is falls
outside of the angle specified for this property, contributes no intensity. This property takes float
value between 0.0 and 180.00, and has a default value of 90.0. The float value you specify
corresponds to half the angle; for instance if you wish to specify a 90° angle you would pass a
value of 45.0.
Example
This statement sets the
spotAngle
property of the light unidirectional to 8. The angle of the light
projection cone will be 16°:
member("3d world").light("unidirectional").spotAngle = 8
spotDecay
Syntax
member(
whichCastmember
).light(
whichLight
).spotDecay
Description
3D light property; allows you get or set whether a spotlight’s intensity falls off with the distance
from the camera. The default value for this property is
FALSE
.
Example
The following statement sets the
spotDecay
property of light 1 to
TRUE
. Models that are farther
away from light 1 will be less brightly lit than models that are closer to it.
member("Scene").light[1].spotDecay = TRUE
sprite
Syntax
sprite(
whichSprite
).property
the property of sprite
whichSprite
Description
Keyword; tells Lingo that the value specified by
whichSprite
is a sprite channel number. It is used
with every sprite property.
A sprite is an occurrence of a cast member in a sprite channel of the Score.
This term has special meaning in the Director player for Java. Don’t use the term
sprite
in Java
code that you embed within a Lingo script.
Examples
This statement sets the variable named
horizontal
to
the locH of sprite 1
:
horizontal = sprite(1).loc
This statement displays the current member in sprite channel 100 in the Message window:
put sprite (100).member
See also
puppetSprite
,
spriteNum
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...