- Home /
To make an Invisible room
Ok, I don’t know if this is possible, but if it is it might help me tremendously.
Basically I want to create a normal looking room to put player A into, but if player B is outside the room I want the whole object to be invisible along with the player A. So essentially player B is unaware there is a room and another player in front of them.
Any ideas?
Answer by hvilela · Sep 26, 2012 at 08:10 PM
I'm not sure it I understood your question. It's a multiplayer game? A and B are different players running the game in different places? if yes, all you have to do is disable the renderer component of that object on that game instance.
is that the answer you're looking for?
The two players will be in the same scene, but using different game modes.
So one could be inside a truck (Using a separate ‘room’ to give the illusion of being inside the game object), while the other drives it. The trick I'm going for is to keep the two together in one scene so they can affect each other easily (For example if the car hits something the 'interior' area shakes), but unable to see or effect each other.
As far as collisions go I think layers are the way I should go? I just need to work out how to ensure they can’t see each other as well.
But it's a multiplayer game where each player is running the game in his own machine or both in the same one. Sorry, I'm trying to help but there's too much information missing.
No worries, I’m just bad at fra$$anonymous$$g my question.
What I’m trying to do is have two game types running at the same time on the same scene. I am ai$$anonymous$$g to make it multiplayer but for now my aim is to have both running in the same scene without physically interacting with each other.
So with only one player they can switch between the driving game mode and the interior game mode. The important feature is that both modes are running regardless which game mode the player is controlling, so for example while in the interior area the vehicle also still exists and can be effected by the game environment (So if you left it running it could fall off a cliff etc).
Apologies if that still doesn’t make much sense, I know it’d be easier to have the two game modes just be different scenes but it’s important for my concept that the vehicle portion always ‘exists’. So to solve this I’m trying to be a little cheeky and lock the interior area on its own layer in the same scene.
Your answer
Follow this Question
Related Questions
Player invisible on respawn 2 Answers
Remember player position / room translation 3 Answers
Why does the player settings for a project not override previous default resolutions? 0 Answers
How do I make a random player generator? 1 Answer
Network player duplicated when replacing player with a new one 1 Answer