hi this is my first time to use Unity and i wanted to know how to make portals like the ones in Portal 2. I saw a Question like this but i didn’t understand anything, it said something about Render Textures but i didn’t understand how to use it, can someone explain please?
//Script to revert winning player back to main menu
var levelToLoad : String;
function OnTriggerEnter(hit : Collider)
{
Application.LoadLevel();
}//END FUNCTION ONTRIGGERENTER
this is a script that links levels but I’m not sure that it will be a “Portal” like thing. It basically allows you to travel from one scene to another when you reach the end of a level
or if you want within a scene you could create an empty gameobject or a cube so you can see it.
position the cube where you want your character to teleport to
and then apply this script to a trigger (create a cube go into the collider and tick trigger) also apply the your teleport (whereToSpawn) point to the trigger
public var whereToSpawn: Transform;
function OnTriggerEnter(hit : Collider){
if(hit.tag=="Player"){
hit.transform.position = whereToSpawn.position;
}
}
@thecontroller
You don’t get how complicated your question is…
I’m working on a portal 3 fan-game and i just finished my portal mechanics.
contact my email:
projectfruit360@gmail.com
if you are still interested or even interested for a non paying job. (or knowledge payment).