All tutorials

The basicsEpisode 4

Branches and endings

Connect After school, the scene written in episode 3, to the sample story, add a choice at its end and record the player's choice in the saved variable affection. Create two ending scenes and jump to one or the other according to the variable. Then use the Route coverage test to find a condition that can never hold, correct it and run the test again. Finally, play the choice and the ending in Dev Mode. When a project has many scenes, Ctrl+P opens a scene by its name.

Chapters

  1. 0:00Connecting the scene
  2. 0:17Adding a choice
  3. 0:34Recording the choice
  4. 0:55Writing the endings
  5. 1:24Branching on the variable
  6. 1:45Testing the routes
  7. 2:23Playing it