Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Sat 27/08/2005 08:40:54

Title: Help with NPC animation.
Post by: on Sat 27/08/2005 08:40:54
I have a NPC inside a bar who is holding a cigarette. I want the smoke from it to animate. I have made a view with the animation.

I tried to make it the characters idle animation, but nothing happens.

What should i do for this NPC animation to loop nonstop?
Title: Re: Help with NPC animation.
Post by: Ashen on Sun 28/08/2005 13:43:52
1. If you set it as the idle view in the editor, keep in mind that it'll only run once, every 30 (I think) seconds. You could try changing it in-game, with a delay of 0 ( Character - Set idle animation (CHARID, VIEW, 0) in the interaction editor, or character[CHARID].SetIdleView(VIEW, 0); / SetCharacterIdle (CHARID, VIEW, 0); depending on which AGS you're using), which would make it loop constantly.

2. Look up Character.Animate() / AnimateCharacterEx(). (Or, RTFM)