480
Chapter 12: Methods
This statement removes the puppet condition from the sprite in the channel numbered i + 1:
-- Lingo syntax
_movie.puppetSprite(i + 1, FALSE)
// JavaScript syntax
_movie.puppetSprite(i + 1, false);
See also
makeScriptedSprite()
,
Movie
,
Sprite Channel
puppetTempo()
Usage
-- Lingo syntax
_movie.puppetTempo(
intTempo
)
// JavaScript syntax
_movie.puppetTempo(
intTempo
);
Description
Movie method; causes the tempo channel to act as a puppet and sets the tempo to a specified
number of frames.
When the tempo channel is a puppet, script can override the tempo setting in the Score and
change the tempo assigned to the movie.
It’s unnecessary to turn off the puppet tempo condition to make subsequent tempo changes in the
Score take effect.
Note:
Although it is theoretically possible to achieve frame rates up to 30,000 frames per second
(fps) with the
puppetTempo()
method, you could do this only with little animation and a very powerful
machine.
Parameters
intTempo
Required. An integer that specifies the tempo.
Example
This statement sets the movie’s tempo to 30 fps:
-- Lingo syntax
_movie.puppetTempo(30)
// JavaScript syntax
_movie.puppetTempo(30);
This statement increases the movie’s old tempo by 10 fps:
-- Lingo syntax
_movie.puppetTempo(ol 10)
// JavaScript syntax
_movie.puppetTempo(ol 10);
See also
Movie
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...