You know you can set the speed when using MoveObject?
Animating != Moving
You would have to use IsObjectMoving:
Code: ags
If this is still too fast for you, do it like this:
Code: ags
Quote
while object is animating wait(1)
Animating != Moving
You would have to use IsObjectMoving:
MoveObjectDirect(0, 160, GetObjectY(0), 1); // move object to middle of room
while (IsObjectMoving(0) == 1) Wait(1); // wait until object is has stopped moving
// at this point the object has arrived
// do your stuff, animate door and so on
If this is still too fast for you, do it like this:
while(GetObjectX(0) > 160) { // while object has not arrived in middle of room
SetObjectPosition(0, GetObjectX(0) - 1, GetObjectY(0)); // move object 1 pixel to the left
Wait(10); // wait 250 ms (increase this to slow it down even more)
}
// at this point the object has arrived
// do your stuff, animate door and so on