User Guide
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(oldTempo + 10)
// JavaScript syntax
_movie.puppetTempo(oldTempo + 10);
See also
Movie