Wiki / Gameplay Workshop
Connect two scenes with Canvas buttons
Create a workshop scene, send a named button event, and use Visual Actions to travel back and forth.
Create the second scene
Start a new Studio project and keep its first scene as the start screen. Choose File → New Scene…, enter Workshop, and confirm. Studio saves the scene in the current Assets folder as assets/Workshop.scene.json and opens it. Add a Canvas button to the Workshop scene and set its text to Back.
The first scene created by Studio is assets/Main.scene.json; the second scene ID is assets/Workshop.scene.json. Scene IDs are project-relative paths. A button can switch scenes only when its destination is present in the project build.
Build and follow the route
After applying the Workshop transition, reopen Main from Assets before the test. Click Test MIDlet; Studio builds and starts the currently open scene. Focus Enter workshop with the direction keys and press Numpad 5. The MIDlet loads Workshop; focus Back and press 5 to return to Main. If a transition does not happen, check the button's On Click spelling and the Visual Action's Scene ID against the path shown in Assets.
The CLI can list scene IDs and check the whole project before you build. Set $project to the folder Studio opened; get $cli, $jdk, and $toolkit from the installed CLI setup guide. scenes shows the project IDs; validate checks all scenes and references; build packages the startup scene and its scene bundle.
node $cli scenes $project
node $cli validate $project
node $cli build $project --jdk $jdk --toolkit $toolkit