Script Reference |
moveobj (objectname ; x ; y ; speed or time ; wait ; smooth) //Advanced |
Used for : Objects.
Parameters :
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.