Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Monsieur OUXX on Mon 22/04/2013 10:33:08

Title: [SOLVED] How to make my character blink?
Post by: Monsieur OUXX on Mon 22/04/2013 10:33:08
I usually hate having to create the characters in the Editor, because I realize views never end up being used like I thought they would.
And that's what's happening again, to my great distress :)
How do you use the blinking view?
At the moment I have :
- a normal view, which is only one single loop with one single sprite( it's for a completely static character)
- a blinking view, which is only one loop with one sprite (the sprite with the eyes closed)

I thought the blinking view would be called once in a while, but I'm probably mistaken on how it works.
I've read somewhere it's only for Sierra-style speech. Is that still true?
Maybe I should use the idle view instead? In that case, could you tell me how I can increase how often it's triggered? At the moment it happens very rarely.
Title: Re: How to use blinking view?
Post by: Khris on Mon 22/04/2013 10:48:01
The blinking view is supposed to show just the eyes blink. It is drawn on top of the current view (only) when Sierra-style speech is used.
So basically the portrait will keep talking, and in addition the eyes are animating.
Title: Re: How to use blinking view?
Post by: NickyNyce on Mon 22/04/2013 11:24:13
If you did use the idle view, you could place this anywhere you want, game start, room load...

Code (AGS) Select
cMoss.SetIdleView(26, 250); 
26 is the view, 250 is the time that it's executed.

If you had more then one frame in the view, you could increase the speed of the animation by using -5 for the delay in each frame to make the animation faster.
Title: Re: How to use blinking view?
Post by: Monsieur OUXX on Mon 22/04/2013 12:44:22
Quote from: NickyNyce on Mon 22/04/2013 11:24:13
you could place this anywhere

Code (AGS) Select
cMoss.SetIdleView(26, 250); 

Thanks! I never noticed the second parameter to that function. Solved!