dim3 Forum

Full Version: Milti-charactor level
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I once played a game long ago called munch's oddeesay.
In the levels there where two charactors you play any
you caonstantly switch between them but the retain there
position for when you switch back. Is this possable in
dim3? If so how?
Think about it. What do you need for one character and what for the other? How will you store this data?I want to use one Player.js, so how do I decide which character I'm using? Perhaps a switch to define which set of constants to use? But what about the position? Simple. Show/hide meshes and save the current player position when the change button is pressed. Okay, done that, but the other character disappears when I change. How do I keep it? Oh, I know, I'll move a static model to the position of the other player while it's not active.
Not a static model. From what from what I've seen of the game, its essentially a coop one player game. So you'd have to have a bot (that can switch models), that jumps to the position the player just left, and start there.
Make both players vehicles; then when you enter the map (as a third player), auto-enter one of the vehicle player, and then use the vehicle API to jump in between them.

The vehicle API is mostly used for vehicles, but can be used to enter *any* other object. Like, a suit of armor, for instance, or could be used to switch between things.

[>] Brian
Thanks brian. That was probably the best help for my game yet.
And still remember to give the bot Ai when not selected.

I have a question, perhaps relating. What excactly is the point of the type:player in the editor spots? Does that mean that the player keydowns will only get sent to that object? Or what? And conceivably, could you make a player object that the camera is looked from, while another object is controlled by the keydowns, even though its not the player? Yes I'm thinking about a second person shooter.
Reference URL's