Documentation
Types
MenuChoice

MenuChoice

type MenuChoice = {
    action: ActionStatements;
    prompt: SentencePrompt | Sentence;
};

Example:

Menu.prompt("What should I do?")
    /**
     * option: "Go left"
     * action: say "I went left" and jump to scene2
     */
    .choose("Go left", [
        character1.say("I went left"),
        scene1.jumpTo(scene2)
    ])
    
    /**
     * option: "Go right" with red color
     * action: say "I went right"
     */
    .choose(Sentence([ "Go", new Word("right", {color: "#ff0000"}) ]), [
        character1.say("I went right")
    ])

For more information about ActionStatements, see ActionStatements.