The moveobject command is used to move the object's position.
"then(moveobject, x movement , y movement)"
Argument |
Function |
x movement |
The amount of space the block will move in the x direction. (Keep in mind, the object starts in the right corner, not in the middle of the block.) |
y movement |
The amount of space the block will move in the y direction. (Keep in mind, the object starts in the right corner, not in the middle of the block.) |
And example of the moveobject command used in a script is as follows...
The following script moves a block based on a timer.
if(always)
{
then(changevartimer,timer,-,1)
}
if(compare,var(timer),<=,0)
{
then(changevar,timer,=,0)
then(moveobject,32,32)
}
|
|