Script Reference Objects

moveobj (objectname ; x ; y ; speed or time ; wait ; smooth) //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.
- smooth - 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. "Smooth" will smooth the movement speed. Instead of "Smooth" you can also provide a value from 1 to 199 ("smooth" is 20). 100 is like no smoothing at all. Below 100 means the movement will start slowly, increase in the middle and slow down again to the end. Over 100 means the exact opposite.

[Variables] can be used as parameters.