Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Glenjamin on Mon 10/08/2015 20:09:53

Title: Changing idle animations
Post by: Glenjamin on Mon 10/08/2015 20:09:53
In the game i'm making, the player character keeps doing it's idle animation during inappropriate times like cutscenes. How can I change/remove the animations?
Title: Re: Changing idle animations
Post by: Khris on Mon 10/08/2015 22:47:46
Please check the manual before opening a thread.

QuoteCharacter.SetIdleView(int idleview, int delay)
...
Pass IDLEVIEW as -1 to disable the idle view completely.
Title: Re: Changing idle animations
Post by: Slasher on Wed 19/08/2015 12:08:24
Hi Khris,

whenever i have passed -1 for the idle view it displays walk view...

is it me or what?

Title: Re: Changing idle animations
Post by: Khris on Thu 20/08/2015 10:22:59
Apparently it's you, because it works fine for me.
Title: Re: Changing idle animations
Post by: Slasher on Thu 20/08/2015 10:50:49
Code (ags) Select

cJones.SetIdleView(10, -1);

10 is the idle view and above produces character constantly doing walk animation without actually walking,

ags 321
Title: Re: Changing idle animations
Post by: Snarky on Thu 20/08/2015 10:53:28
Compare this...

QuoteCharacter.SetIdleView(int idleview, int delay)
...
Pass IDLEVIEW as -1 to disable the idle view completely.

to this...

Code (ags) Select

cJones.SetIdleView(10, -1);


... until you spot your mistake.
Title: Re: Changing idle animations
Post by: Slasher on Thu 20/08/2015 10:59:39
Snarky

Mistake seen (laugh)

but my example does do as i said (nod)

cheers ;)