682
To erase trails, animate another sprite across these pixels or use a transition.
Example
This statement turns on trails for sprite 7:
sprite(7).trails = 1
See also
directToStage
transform (command)
Syntax
transform()
transform(
n1
,
n2
,
n3
, ... ,
n14
,
n15
,
n16
)
Description
3D command; this command creates a transform object. When this command is used without
providing any parameters it creates a transform object equal to the identity transform. The
identity transform has positional and rotational components of vector(0,0,0), and it has a scale
component of vector(1,1,1). When this command is used while providing sixteen parameters in
the form of
n1
,
n2
,
n3
, ... ,
n14
,
n15
,
n16
then this command creates a transform object using those
16 entries for the transform data.
Examples
This statement creates an identity transform and stores it in the variable tTransform:
tTransform = transform()
This statement creates an identity transform by specifying all 16 of its elements, and it stores the
new transform in the variable tTransform.
tTransform = transform(1.0000,0.0000,0.0000,0.0000, \
0.0000,1.0000,0.0000,0.0000, 0.0000,0.0000,1.0000,0.0000, \
0.0000,0.0000,0.0000,1.0000)
This statement creates a custom transform by specifying all 16 of its elements, and it stores the
new transform in the variable tTransform. The transform created has a
position
property of
vector(19.2884, 1.7649, 4.2426)
, a
rotation
property of
vector(75.7007, 0.0000, -
6.5847)
and a
scale
property of
vector(0.4904, 0.7297, 0.3493)
.
tTransform = transform(0.4872,-0.0562,0.0000,0.0000, \
0.0795,0.1722,0.7071,0.0000, -0.0795,-0.1722,0.7071,0.0000, \
19.2884,1.7649,4.2426,1.0000)
See also
transform (property)
,
preRotate
,
preTranslate()
,
preScale()
,
rotate
,
translate
,
scale (command)
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...