Wintermute Engine Forum
Wintermute Engine => Feature requests, suggestions => Topic started by: Scarpia on February 20, 2003, 09:41:26 PM
-
I wonder, maybe this can already be done, I haven't dug that deep into the engine just yet.
For my unique-style, grand, amazing, fabulous perfect game idea (don't we all have one? ;)), I will need to switch Player Character in mid-game, from one Actor to another. Just changing all the sprites is not going to work for me; since I need to change player character 30+ times throughout the game (did I mention it was very unique?)
Anyways, is there a way to do this? If not, could it be done? I'm sure other game programmers could use this as well, even on less than unique-style-grand-amazing-fabulous game ideas. ;D
Scarpia
-
You don't need a new feature to achieve this. If you look at the sample code, you'll see that all player actions are handled by the 'actor' variable. All you need to do is load a different actor and assign it to the 'actor' variable. All events now use your new actor.
Greetings
Banbury
-
Exactly like Banbury said. There might be a slight problem with the characters' inventories though. If you wanted to preserve individual inventories for each character, you'd have to make a simple script to save/reload the items for a particular character. Although, the inventory handling will probably change in some future release of WME, the actor will be able to have their own "private" inventories.
-
WEll, yes I would like to have different inventories for each character, but I could probably script my way through that one. The 'individual inventories' sounds like a great maybe-feature though.
Scarpia
-
Just to let you know, even if you're game is unique, Lucasarts already did multiple characters in Maniac Mansion 2 : Day of the Tentacle ;-)
I thought how fun that was, so in the future I may make an adventure game that uses multiple characters, because that's cool.
Keith
-
Actually, I've recently read about a plot idea that was similar to mine, so even if what I'm planning hasn't been done yet, it isn't entirely unique. Think The Mask meets Little Nicky, and you're almost there.
Scarpia