Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Oz on Sun 21/11/2004 15:27:31

Title: Moving an object without pausing the game? (Solved!)
Post by: Oz on Sun 21/11/2004 15:27:31
Is there any way I can move an object (MoveObjectDirect) without the game being paused or do I have to make the object a character in order to be able to do this (MoveCharacter)? I'm looking to have small things moving around in the backgrounds (birds flying by, cars passing, etc).
Title: Re: Moving an object without pausing the game?
Post by: Pumaman on Sun 21/11/2004 16:55:27
MoveObjectDirect doesn't pause the game. Can you post the script you're using?
Title: Re: Moving an object without pausing the game?
Post by: Oz on Sun 21/11/2004 18:02:55
I found out what I was doing wrong. I had a 'wait(100);' line holding up the rest of the script. Is there any other way I could delay an event? I want an object to move across the screen about 10 seconds after the player has entered the room. I figure I should be able to do this by setting up a timer of some sort. I'll look around the forums for info on this!
Title: Re: Moving an object without pausing the game?
Post by: Oz on Sun 21/11/2004 18:09:25
Ah! No problem using SetTimer and IsTimerExpired. "Problem" solved.