lastRoll

Usage

-- Lingo syntax
_player.lastRoll

// JavaScript syntax
_player.lastRoll;

Description

Player property; gives the time in ticks (1 tick = 1/60 of a second) since the mouse was last moved. Read-only.

Example

This statement checks whether 45 seconds have passed since the mouse was last moved and, if so, sends the playhead to the marker Attract Loop:

-- Lingo syntax
if (_player.lastRoll > (45 * 60)) then
   _movie.go("Attract Loop")
end if

// JavaScript syntax
if (_player.lastRoll > (45 * 60)) {
   _movie.go("Attract Loop");
}

See also

lastClick, lastEvent, lastKey, Player