Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Sun 20/02/2005 19:46:12

Title: Setting character idle delay
Post by: on Sun 20/02/2005 19:46:12
I know what the script is for changing idle delay
{SetCharacterIdle(WHATEVER, VIEW NUMBER, SECONDS OF DELAY);}
but I don't know where to write it down in the game. I wrote it at the end of the global script and it didn't work.
Title: Re: Setting character idle delay
Post by: x_traveler_x on Sun 20/02/2005 20:51:33
Yeah, I don't see how puting that in the global script would do anything.

Unless I'm mistaken, I believe you would put that in whatever room want the delay to change.  If you want to change it right when the game begins, then you would put it in your first room's interaction script before the fadein.

Click Room Editor, then click Settings, then click the "i" button.

Let me know if that helps!
Title: Re: Setting character idle delay
Post by: on Sun 20/02/2005 21:30:35
 :D Thanks! It works now.
Title: Re: Setting character idle delay
Post by: on Mon 21/02/2005 00:07:54
Quote from: x_traveler_x on Sun 20/02/2005 20:51:33
If you want to change it right when the game begins, then

Perhaps a better method would be to put it in the "game_start" function in the global script.  If you change the room the game starts in you would have to move the code to the new room (and if you forgot it wouldn't be executed until the room it was in was loaded).  So, it's safer to put it there, because that executes at the start of the game, no matter what room loads first.
Title: Re: Setting character idle delay
Post by: x_traveler_x on Mon 21/02/2005 01:00:32
Very true.  Thanks for pointing that out.