User Guide

minSpeed 859
Example
This statement converts milliseconds to seconds and minutes by dividing the number of
milliseconds by 1000 and dividing that result by 60, and then sets the variable
currentMinutes
to the result:
-- Lingo syntax
currentSeconds = _system.milliseconds/1000
currentMinutes = currentSeconds/60
// JavaScript syntax
var currentSeconds = _system.milliseconds/1000;
var currentMinutes = currentSeconds/60;
The resolution accuracy of the count is machine and operating system dependent.
This handler counts the milliseconds and posts an alert if youve been working too long:
-- Lingo syntax
on idle
if (_system.milliseconds > (1000 * 60 * 60 * 4)) then
_player.alert("Take a break")
end if
end
// JavaScript syntax
function idle() {
if (_system.milliseconds > (1000 * 60 * 60 * 4)) {
_player.alert("Take a break");
}
}
See also
System
minSpeed
Usage
member(whichCastmember).modelResource(whichModelResource).
emitter.minSpeed
Description
3D property; when used with a model resource whose type is #particle, allows you to get and
set the minimum speed at which particles are emitted. Each particle’s initial velocity is randomly
selected between the emitters
minSpeed and maxSpeed properties.
The value is a floating-point number and must be greater than 0.0.
Example
In this example, ThermoSystem is a model resource of the type #particle. This statement sets
the
minSpeed property of ThermoSystem to 5, which causes the slowest particles of
ThermoSystem to move somewhat slowly. Within a given particle system, the slower a particle
moves, the shorter the distance it will travel.
member("Fires").modelResource("ThermoSystem").emitter.\
minSpeed = 5
See also
maxSpeed, emitter