Animating NPC - creating loops for non-playable characters

Started by The Outer Zone, Sat 18/08/2018 00:01:25

Previous topic - Next topic

The Outer Zone

Greetings people of the blue cup!

I want my npc characters to play a loop animation. And I want to control when they go from one frame to the next etc.
This seems straightforward when I make my frames and set the delay in their views.

But when I play the scene, the animation only plays every 15+ seconds.

Hope someone knows why.

Cheers,
Malte
The Outer Zone - Strange narrative games and illustrated books.
http://the-outer-zone.blogspot.com/

eri0o


Lewis

My guess: you're trying to handle it as an idle animation.

But yeah, we need more detail. You can't debug without seeing the code and knowing where it is in the project, otherwise it's guesswork.
Returning to AGS after a hiatus. Co-director of Richard & Alice and The Charnel House Trilogy.

Slasher

You can set the idle animation delay between animating in the script..

Example:
Code: ags

cDOG.SetIdleView(36, 5); // this will play the idle view (36) every 5 (5) seconds...Amend to suit...


Hope this helps.

The Outer Zone

Thank you @Slasher!

This is exactly what I need :)

And yeah, I will remember include my code next time.

Cheers!
The Outer Zone - Strange narrative games and illustrated books.
http://the-outer-zone.blogspot.com/

SMF spam blocked by CleanTalk