Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: spook1 on Tue 31/01/2006 21:57:57

Title: is there a simple code to make a character change clothes?
Post by: spook1 on Tue 31/01/2006 21:57:57
I have a character that needs to change his looks during walking.
When walking through a pool the characters trousers must become dirty during walking.

In other words, I want to change views without interrupting the action.

I have several views for the character, all identical, but with different "clothes".

Is there an easy way to switch between the views? Or do I need to do a lot of coding, checking for the actual loop, spritenr and take it from there in the new interaction?

Any suggestions?
Title: Re: is there a simple code to make a character change clothes?
Post by: Ashen on Tue 31/01/2006 22:05:28
Have you tried anything yet?

As far as I can tell, provided the frames match up between the views (e.g. same foot forward first in matching loops), just using Character.ChangeView(..) should make the change perfectly, even when the character is moving.
Title: Re: is there a simple code to make a character change clothes?
Post by: spook1 on Wed 01/02/2006 12:27:59
I must admint I did not try it yet. I am sorry.
I dare not hope for such a wonderfull feature.

Martijn