Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: bx83 on Sat 27/05/2017 02:46:47

Title: Change walking frame loops when changing movement view
Post by: bx83 on Sat 27/05/2017 02:46:47
Hi
Does anyone know if this is possible?
I have a character whose movement loops are 0-7: up, down, left, right, up-left, up-right etc.
But I want to change his view, in some rooms, to the 'old' version of him, and have him move like this: using keys or mouse, he walks around as before, but the movement loops are different (loop 8-15?)

Is it possible to have a character move in a second set of loops, without dynamic change of every single frame in the current sets?
Title: Re: Change walking frame loops when changing movement view
Post by: Crimson Wizard on Sat 27/05/2017 02:53:15
No, using built-in mechanics it's only possible to walk with loops 0-7. Using different loops will require scripting your own walking system.

Is there a specific reason you want to use exactly these loops though?
Common strategy is to create separate View with another set of loops 0-7, and switch to that with Character.ChangeView function.
Title: Re: Change walking frame loops when changing movement view
Post by: bx83 on Sun 28/05/2017 06:18:39
QuoteCommon strategy is to create separate View with another set of loops 0-7, and switch to that with Character.ChangeView function.

I'll do exactly that.
My game has the main character in several forms: normal; old; pulling a wagon; etc.
Title: Re: Change walking frame loops when changing movement view
Post by: bx83 on Sun 04/06/2017 14:13:51
How do I change the speech view?
I can only change the movement view; none of the speech or extra animations.
Title: Re: Change walking frame loops when changing movement view
Post by: arj0n on Sun 04/06/2017 14:35:02
Just set a view as speechview:


cEgo.SpeechView = 10;