Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Tue 07/10/2003 02:38:49

Title: idle
Post by: on Tue 07/10/2003 02:38:49
Hello.

I want to change the time interval to make my characters idle, and the help file says to use: SetCharacterIdle (CHARID, int idleview, int delay)

in the script.

This is all well, except i dont know where to put it into the script, or what function heading to use.

Can someone please help me with this?

Thanks,
Gav
Title: Re:idle
Post by: taryuu on Tue 07/10/2003 03:18:59
in the idle animations view page,
main tree - views - view(whatever view is your idle)

you could change the delay for the frame by clicking underneath where it says  SPD:0

and then setting the delay there.  does that help?
Title: Re:idle
Post by: on Tue 07/10/2003 03:42:26
are we using the same program (agsedit) ?  I'm afraid that the idle animation view page is completely foreign to me and i can't find it, or any mention of it, at all.

any other suggestions anyone?
Title: Re:idle
Post by: Gilbert on Tue 07/10/2003 03:46:58
There's only one editor for AGS (unless you're talking about Roommake and Roomedit in REAL old versions), there should be a "Views" page accesible by clicking on the appropiate option on the left tree panel of it.
Title: changing the time until idle animation starts
Post by: on Tue 07/10/2003 05:30:46
ah yes yes...i misunderstood that it seems.

but does that actually speed up the amount of seconds i have to be idle before the idle animation starts? i dont think it does, i think its for changing how long each frame plays for.

the default time until idle starts is 20 seconds and i want to set it at about 6.  how can i change this?
Title: Re:idle
Post by: Gilbert on Tue 07/10/2003 06:36:36
In that case, just use that SetCharacterIdle () function in WHERE you want the change.

For example, if you want it to change to one specific value in the WHOLE game, just put it in the gamestart() function.
Title: Re:idle
Post by: Ishmael on Tue 07/10/2003 13:19:08
Took time to find out what was originally asked, or didt taryuu just confuse you? ;D

In the Global Script there's a function called game_start(). Place it there ;)
Title: Re:idle
Post by: on Wed 08/10/2003 00:43:59
ok thanks, that's working good now.