Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: xBRANEx on Sun 18/06/2017 23:19:18

Title: A pause before IdleAnimation starts
Post by: xBRANEx on Sun 18/06/2017 23:19:18
I have a bird-like character that I want to be always in motion. So he flies somewhere and when he stops he makes his change from NormalView to IdleView that I set to 0: cBird.SetIdleView(5, 0);

The problem is that there's a slight pause when this change is supposed to happen. It's not a big pause but it really takes away from the experience.

I was wondering can this be fixed? What is the cause of this problem?
Title: Re: A pause before IdleAnimation starts
Post by: Snarky on Mon 19/06/2017 00:37:43
Quote from: xBRANEx on Sun 18/06/2017 23:19:18
I have a bird-like character that I want to be always in motion. So he flies somewhere and when he stops

Wait, I'm confused...

Just from the mention of IdleView, though, I suspect the same confusion (http://www.adventuregamestudio.co.uk/forums/index.php?topic=54863.msg636562317#msg636562317) between that and the "standing-still frame" (which is part of the NormalView) as several others have had recently.
Title: Re: A pause before IdleAnimation starts
Post by: xBRANEx on Mon 19/06/2017 19:26:08
When the bird ends its NormalView, that is when the character goes to the place I left-clicked before, then the character goes from the NormalView to the IdleView because it's set to 0. In that exact moment there is a pause, so the bird isn't flapping it's wings. The weird thing is sometimes that pause is a few frames but sometimes it lasts noticeably long
Title: Re: A pause before IdleAnimation starts
Post by: Alan v.Drake on Tue 20/06/2017 10:24:33
Try with -1, it feels wrong but with 0 there's a delay between 0 and 1 seconds due to the way that part was coded.

- Alan
Title: Re: A pause before IdleAnimation starts
Post by: xBRANEx on Wed 21/06/2017 11:31:59
Thanks, Alan!

That solved one problem but brought back an old one. There were already questions here about it. It's the infamous delay on the IdleView that is slower than the NormalView and you fix it by setting delay of every frame to -5.

When I put -1 for SetIdleView function that really helps with my problem but now the animation is again slow. I've tried putting the delay for every frame to -10, -4,-6 and back to 0, and it didn't help.

I'm not sure why the delay on SetIdleView function messes with the delay on the frames of the animation.