Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: Nihil on December 19, 2003, 10:56:18 AM

Title: Different Sprites for the main actor?
Post by: Nihil on December 19, 2003, 10:56:18 AM
I've just wondered, is it possible to have different sprites for the main actor?
I don't mean the animation sprites, but completely different ones. I couldn't find something about this in the help file.

The reason for this is, that my game will take place in very different regions and cover a time span of approx. 3 months from autumn to deep winter, so I think it would be more realistic (and hygienic of course  :) ) if he would change his clothes from time to time :)

I don't need an in-depth explanation of how it works, a simple Yes or No is enough (though a Yes would be prefered :) )
Title: Re:Different Sprites for the main actor?
Post by: Jerrot on December 19, 2003, 12:08:20 PM
I've just wondered, is it possible to have different sprites for the main actor?
I don't mean the animation sprites, but completely different ones. I couldn't find something about this in the help file.

Good question. I think you can't change the definitions from the actor files in the script yet. But it should be no problem to load another actor definition with

actor = Game.LoadActor("actors\mycharacter\chapter3.actor");
Title: Re:Different Sprites for the main actor?
Post by: Nihil on December 19, 2003, 12:29:15 PM
Well, that sounds easy :)

Is the inventory in any way connected to the actor (I haven't done too much wme-scripting until now, so I don't know ...)

According to the Help the Inventory is a Game-Object, and not an Actor-Object?

PS: Ok, now it IS going in-depth :-)
Title: Re:Different Sprites for the main actor?
Post by: Mnemonic on December 19, 2003, 12:55:32 PM
Currently there's only one global inventory in the game. If you need more of them, you'll have to script it.
Personal inventores are planned, but in your case, the current situation is more appropriate, right? :)
Title: Re:Different Sprites for the main actor?
Post by: Nihil on December 19, 2003, 12:59:33 PM
Ha! Who needs personal inventories? :)

Title: Re:Different Sprites for the main actor?
Post by: Jerrot on December 19, 2003, 03:00:52 PM
Ha! Who needs personal inventories? :)

Actually it's really easy - I'll post you a quite straight solution in the snippet section.