Game
Planet Explore
11 years ago

Main Menu 1.0


English and Spanish

how it works:

guitexture with the script of the corresponding scene

one script use a door to move a plane where the credits it is activated with the “c” key,

ie the Main Camera will be within a cube where the trigger is activated while the door is inside the cube to tell us “precione the C key to display the credits.”

como trabaja:

un guitexture con la script de la escena correspondiente,

al darle click nos tirará la escena para jugarlo.

Creditos en el menú

una script de una puerta que uso para que mueva un plano donde se encuentran los creditos éste se activa con la tecla”c”,

es decir, la Main Camera estara dentro de un cubo donde esta activado el trigger, a la vez la puerta está dentro del cubo para que nos diga “preciona la tecla C para que aparezcan los créditos”.

Script:

var smooth = 2.0;
var DoorOpenAngle = 90.0;
private var open : boolean;
private var enter : boolean;

private var defaultRot : Vector3;
private var openRot : Vector3;

function Start(){
defaultRot = transform.eulerAngles;
openRot = new Vector3 (defaultRot.x, defaultRot.y + DoorOpenAngle, defaultRot.z);
}

function Update (){
if(open){
//Open door
transform.eulerAngles = Vector3.Slerp(transform.eulerAngles, openRot, Time.deltaTime smooth);
}else{
//Close door
transform.eulerAngles = Vector3.Slerp(transform.eulerAngles, defaultRot, Time.deltaTime smooth);
}

if(Input.GetKeyDown(“c”) && enter){
open = !open;
}
}

function OnGUI(){
if(enter){
GUI.Label(new Rect(Screen.width/2 - 75, Screen.height - 100, 150, 30), “Press C to display the Credits”);
}
}

function OnTriggerEnter (other : Collider){
if (other.gameObject.tag == “Player”) {
enter = true;
}
}

function OnTriggerExit (other : Collider){
if (other.gameObject.tag == “Player”) {
enter = false;
}
}



0 comments

Loading...

Next up

So

i may or may not make an full art of some person or i may just leave this like that-

Bandana Dee the Dream Friend

Been working lately on lots of 'behind-the-scenes' boring stuff that no one really cares about, so here’s a guy playing the sax for some reason.

#screenshotsaturday

Enemies can also suddenly spawn through Realm Rifts. These Rift Spawns are going to be stronger than the ones wandering around. TBD on the enemies... #screenshotsaturday #godstear #madewithunity

Today I was setting up the location of the first boss. His name is "Father" and he is the first of the Patagonians. His task is to guard the road to the House.🛡🗡 Bookmark pre-launch page🔖🔖🔖

https://www.kickstarter.com/projects/rdvindiegame/the-patagonian…

I was bored, so... ManutKat.

Shuiro Haname. #Commission

Commission for @ShuHaname

Alone Together....

brung back my old oc plus a new one

...they don`t have names yet tho

Cash Banooca