Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: tor.brandt on Thu 20/10/2016 20:38:45

Title: [SOLVED] How to display idleview when idle
Post by: tor.brandt on Thu 20/10/2016 20:38:45
OK, I know this is a totally newbie question, but I've searched all over, and actually couldn't find an answer.

When my character goes idle (i.e. stops walking), he just freezes in current frame of his walking view.
How do I make him switch to his idle view instead? I actually thought he would do so by default?

(I'm using the LW-BASS template, if that has something to do with it...)
Title: Re: How to display idleview when idle
Post by: Snarky on Thu 20/10/2016 21:08:48
The idle view is not the "standing still view". It's an animation that can be played every few seconds when the character has been standing idle for a while, typically something like the character tapping their foot or looking at their watch.

The way AGS is set up, the walking view and the standing still view is the same. The first frame of each loop is used for the character standing facing that direction, and the other frames are used for the walking.
Title: Re: How to display idleview when idle
Post by: Danvzare on Thu 20/10/2016 21:12:27
player.SetIdleView(*number of your idle view*, -1) is what you want. ;)

Put it in the room_FirstLoad part of your starting room.
Title: Re: How to display idleview when idle
Post by: tor.brandt on Thu 20/10/2016 21:14:25
@Snarky:
Ah, I see. Thank you so much!

@Danvzare:
I was after what Snarky said, but thank you anyway :smiley: