move | ||||||||||||||||||||||
Type | command | |||||||||||||||||||||
Dictionary | LCS | |||||||||||||||||||||
Library | LiveCode Script | |||||||||||||||||||||
Syntax |
| |||||||||||||||||||||
Summary | Moves an object from one location to another. | |||||||||||||||||||||
Introduced | 1.0 | |||||||||||||||||||||
OS | mac, windows, linux, ios, android | |||||||||||||||||||||
Platforms | desktop, server, mobile | |||||||||||||||||||||
Parameters |
| |||||||||||||||||||||
Example |
| |||||||||||||||||||||
Related | Property: lockMoves, syncRate, moveSpeed, location, points, number, lowResolutionTimers Message: moveStopped Keyword: curve, without, graphic, relative Glossary: object, property, handler, execute, message, statement, command Function: movingControls Command: drag, grab, lock moves, stop moving, unlock moves Object: control | |||||||||||||||||||||
Description | Use the move command to animate controls or windows by moving them smoothly across the screen. Use the move...relative form of the move command to move an object in a straight line a certain distance from its current location. Use the move...from startLoc to endLoc form to move an object in a straight line from one location to another, without regard to where the object started. Use the move...to pointList form to move an object along a set of defined points. If you specify without messages, built-in messages are not delivered during the move. If you specify without waiting, the current handler continues immediately, and a moveStopped message is sent when the move is completed. Otherwise, the handler pauses until the move is complete. If you issue another move command while a previous move command for the same object is still executing, the previous move command is halted, and the second move command starts up at the object's current location. To move multiple objects at the same time, set the lockMoves property to true before issuing the move commands. When you set the lockMoves back to false, all the pending moves begin at once.
If you like, you can hide the graphic so that the object follows the invisible curve, but its path is not visible on screen. | |||||||||||||||||||||
Tags | multimedia |