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

Here's a peaceful little forest scene for this #screenshotsaturday, from the beginning of the game.

I have added rewards for quests so that villagers can give you something in return for your hard work helping them. 🥳

I want to know - what's your favourite quest reward?

Shadow The Hedgehog X pixel art

Werehog transformation process. #sonicunleashed

Horror WIP A track that will be featured in a future horror game soundtrack! Stay tuned!

Likes appreciated ✌️

#gamedev #composer #horrorgame #indiegame #IndieGameDev #soundtrack

Szayel Aporro Granz - Bleach

Path of Kami, running around the shrine area

Animation test. Not an actaul conclusion to who wins sonic vs Mario. Just a test animation combo.

Got some fun collectibles in our game, Path of Kami!

I remade my main character, what do you think? :)