lock moves

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
lock moves
Summary

Sets the lockMoves property to true, preventing motions caused with the move command from being immediately visible.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
lock moves
if the lockScreen is false then lock moves
Values
NameTypeDescription
The result

When you use the move command to move an object around the screen, the movement takes place immediately. If you want to move more than one object simultaneously, first use the lock moves command to prevent these motions from being seen. Then issue the necessary move commands to move the objects, appending "without waiting" to each. Finally, use unlock moves to show the result of the move commands.

RelatedCommand: lock cursor, move, lock messages, unlock moves
Glossary: property, command
Property: lockMoves
Description

Use the lock moves command to synchronize motions made with the move command.

The lock moves command sets the lockMoves property to true.

When all pending handlers are finished executing, the lockMoves property is set back to false.

Tagsmultimedia