[SOLVED] How to make my character blink?

Started by Monsieur OUXX, Mon 22/04/2013 10:33:08

Previous topic - Next topic

Monsieur OUXX

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.
 

Khris

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.

NickyNyce

#2
If you did use the idle view, you could place this anywhere you want, game start, room load...

Code: AGS
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.

Monsieur OUXX

Quote from: NickyNyce on Mon 22/04/2013 11:24:13
you could place this anywhere

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

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

SMF spam blocked by CleanTalk