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,
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()
machine.
Parameters
Required. An integer that specifies the tempo.
intTempo
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
480
Chapter 12: Methods
Sprite Channel
method, you could do this only with little animation and a very powerful
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers