lockMoves

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the lockMoves to {true | false}
Summary

Specifies whether the motion of objects moved by the move command is seen immediately or delayed.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the lockMoves to true
Values
NameTypeDescription
Value

The lockMoves is true or false. By default, the lockMoves property is set to false. It is reset to false when no handlers are executing.

RelatedCommand: unlock moves, reset, move
Glossary: object, property, synchronize, handler, command, execute
Description

Use the lockMoves property to synchronize object movements.

If the lockMoves property is set to true, when you use the move command to move an object around the screen, the movement does not become visible until the lockMoves is set to false. You can set the lockMoves property to true, start several objects moving, then set the lockMoves to false to begin the motion, as in the following example:

on mouseUp
    set the lockMoves to true
    move button 1 to 300,200 in 2 seconds -- doesn't move yet
    move field 2 to 0,0 in 2 seconds -- doesn't move yet
    move graphic 3 to 0,400 in 2 seconds -- doesn't move yet
    set the lockMoves to false -- all three objects start moving
end mouseUp

If the lockMoves is false, the movement takes place immediately.

Tagsmultimedia