Project 2

Project 2 - Part 1

For Project 2, we'll begin to create a framework for a branching-narrative adventure game.

Starter Code - Assets - Unity Package:

See previous section: Project2 starter-assets:

Option 1: Import as Custom Unity Package

IMPORTANT: Add Scenes in Build Settings

For this project to work, you must first go into your project's Build Settings. (File > Build Settings) You must add both scenes to the Scenes to Build Panel. You can drag the scenes from your assets directly into the Scenes to Build Panel. Note the ordering, BeginScene must be higher than EndScene in the order, it will have a 0 on the right side of the panel, while EndScene will have a 1.

Play the Game

If you've done the above steps correctly, you should be able to use the EndButton to go to the EndScene, and from there, you should be able to use the StartButton to return to the StartScene.

Problems with TitlePanel and TitleText Display

Sometimes Unity acts glitchy with UI-Panels and UI-Text gameObjects. If the TitlePanel and TitleText aren't displaying correctly, select the TitlePanel in the hierarchy and then select the rect-transform tool which shows the positioning blue circles at the corners of the panel. Try dragging the top blue circles below the bottom circles to see if the panel has flipped backwards. Also try dragging the left corners over the right corners. This may also be necessary to do with the text element. If these efforts don't fix the problem, simply delete the panel and add new panel / text gameObjects to recreate the corrupted gameObjects.

Last updated