is there a simple code to make a character change clothes?

Started by spook1, Tue 31/01/2006 21:57:57

Previous topic - Next topic

spook1

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?

Ashen

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.
I know what you're thinking ... Don't think that.

spook1

I must admint I did not try it yet. I am sorry.
I dare not hope for such a wonderfull feature.

Martijn

SMF spam blocked by CleanTalk