IDUI - Tunel Scene System


This week I worked on the tunnel system, a scene that will be part of the narrative section of the game. This will be the introduction scene, after pressing the play button and the 3 warnings that appear in the menu (warnings that also have to do with the narrative section of the game). This scene consists of the character appearing in a semi-dark tunnel, where you can see lights in the background. As you go through the tunnel (you have the player's mobility, programmed to only be able to go forward with the W key), more warnings in the form of dialogue will be shown on screen, where then as you continue advancing it will be shown that the person who is talking and giving these “warnings” will be the mother of the character, as it will appear alongside a dialogue.


 Arriving at the end of the tunnel you will find a mirror (the mirror shader is not yet programmed) and is when the Charcter Selector interface will be shown, where you can select 1 of 4 options the identity of your character with which you will appear in the game.


To create this scene first I made the base of the tunnel, where I used 4 basic primitives directly from unity and added lights only at the bottom of the tunnel so that the player could be guided to go there [later there will be an update of the modeling of the tunnel scenery]. Then I created the character, which is just a capsule collider with a rigidbody and with the main camera as a child to be in first person. The mobility script was added, in which it can only go forward.


I created a separate script for the activation of the dialog interfaces, which is also assigned to the character and makes that when it collides with an assigned collider, the dialog interface assigned to that collider is activated and so on with the others in the tunnel. In turn, when the interface is activated it makes the game time equal to 0 as a pause type, so that the player has no mobility while reading the interface. Pressing the button deactivates the interface and the player resumes movement. To create the character selector had to be with an index in which the character's prefabs are preassigned according to the type. In the button is placed the function created for the index and also there is added to each button which is the pattern that will follow according to the script (0, 1 or 2). The trans-fem button equals to 0, trans-masc equals to 1 and trans-nobinarie equals to 2. This Character ID manager is present in all the scenes and is the one that controls that the character you choose is the one that appears in all the scenes. When you select your identity you will enter the main scene of the game which is the city.

Leave a comment

Log in with itch.io to leave a comment.