Game design support?

Hello,

I am in the process of creating a text based game where players input a “decision” which will progress them through the game differently. In other words, the player builds there own story. This game is 2D and I plan to have each level or stage appear almost like a slide in a slide show(Just for example). How should I do this? Should each “slide” be it’s own scene? I need to use a UI in order to allow buttons for the various options. How can these buttons transition the level to the next level based on the decision made. I have experience in plain java and can work my way through C# so I would prefer any code involved in the process be in that.

Any help would be greatly appreciated!

Thanks,
Nathan

The game sounds simple enough in its construction. One thing that you can do is have a panel for each possibility, or “slide” as you call it. For example, each panel could have a text field for the story and any amount of buttons for your decision. When a certain button is clicked, it could simply deactivate its own panel and activate the panel that the next part of the story is on.

A code example. Lets say you have 100 panels for different parts of the story and you have initialized Panel references into an array that we’ll call panels. You can start with panels[0] being active and all the rest being inactive. If the user makes a decision on panels[0] then maybe that takes them to the part of the story on panels[6]. The code of the button would look something like this:

public void ButtonName () {
panels[6].SetActive(true);
panels[0].SetActive(false);
}

This is a very simplistic method, and if your game is really long then it may not be the most effective method as you may not want hundreds of panels in one scene.