First Person Two Character Game

Started by Swamp Witch, Tue 23/08/2005 01:54:02

Previous topic - Next topic

Swamp Witch

Is it possible to create a First Person game but using two characters that can be switched back and forth and they would also have their own inventory?  For example when you start up the game, you can choose to play as a female or male.  Say you select male.  You have played with the male character and he has stuff in inventory.  You then can switch to the female character but she will start off with a clean inventory the the male will retain his inventory for when he is played again?  If this is possible, would I use a global init to keep track of each character and their inventory?

Gilbert

Yes.
You don't need any special treatment for it.
Just use SetPlayerCharacter() (or cEgo.SetAsPlayer() for V2.7+) to set which character to use, and each character already has his own inventory.

Swamp Witch


SMF spam blocked by CleanTalk