Game
Planet Explore
10 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-

Successful landing

#screenshotsaturday

Path of Kami: The Evolution of the Lore

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…

Heya! I wanted to show some gameplay progress i made so far. I hope you like it ^^

I-Buki

Mio-Da!

Ibuki Mioda!

Terraria

An infected room from the second part of Cybel ! Are you up for some cleansing?

Cash Banooca

Explosive domino effect