um script problem

Started by don_tomaso, Sun 20/03/2005 16:25:26

Previous topic - Next topic

don_tomaso

  // script for room: First time player enters screen
 
SetTimer(1,200);


if (IsTimerExpired(1)==1)
    {MoveObject(1,319,75,4);}
 

uh is there something wrong with this script ???  cause my object aint moving.. and I've checked object numbers so they match..                   Im quite new to scripting, but I thought this was how it was supposed to look

Ashen

Well, since you've just set the timer running, it's not going to be expired when you enter the room.
You need to move this part:
Code: ags

if (IsTimerExpired(1)==1)
    {MoveObject(1,319,75,4);} 

into the repeatedly_execute script for the room.
I know what you're thinking ... Don't think that.

don_tomaso

aha I see now, I only asked it once when the timer just started,  thanx, it's all so logical once you know the solution..

SMF spam blocked by CleanTalk