[SOLVED] How to display idleview when idle

Started by tor.brandt, Thu 20/10/2016 20:38:45

Previous topic - Next topic

tor.brandt

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...)

Snarky

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.

Danvzare

player.SetIdleView(*number of your idle view*, -1) is what you want. ;)

Put it in the room_FirstLoad part of your starting room.

tor.brandt

@Snarky:
Ah, I see. Thank you so much!

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

SMF spam blocked by CleanTalk