moveobj

Script Reference Objects

moveobj (objectname ; x ; y ; speed or time ; wait) //Advanced

Used for : Objects.

Parameters :

- objectname - Name of an object in a room.
- x,y - Destination in pixel.
- Speed or time - Either a value between 0 - 15 (Very fast - very slow) or a time in milliseconds (ms).
- wait - Optional.

Description :

Moves a single object or an objectgroup to a specified pixelposition in a room. You can either use a speed setting between 0 and 9 or a time in milliseconds. The speed setting 0 will move the object immediatly to its destination while 9 moves the object very slowly. If you want to use a time you must add a ms to the value. If wait is used as the last parameter the script will pause until the object has reached its destination. [Variables] can be used as parameters.