Change walking frame loops when changing movement view

Started by bx83, Sat 27/05/2017 02:46:47

Previous topic - Next topic

bx83

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?

Crimson Wizard

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.

bx83

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.

bx83

How do I change the speech view?
I can only change the movement view; none of the speech or extra animations.

arj0n

Just set a view as speechview:

Code: ags

cEgo.SpeechView = 10;


SMF spam blocked by CleanTalk