Skip to content

[Fling game] Fix the tutorial getting stuck in all three chapters - #117

Open
4ian wants to merge 13 commits into
mainfrom
claude/gdevelop-tutorials-pr-116-3lulkg
Open

4ian wants to merge 13 commits into
mainfrom
claude/gdevelop-tutorials-pr-116-3lulkg

Conversation

@4ian

@4ian 4ian commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Fixes the Fling game tutorial getting stuck (4ian/GDevelop#9438). Follow-up to #116.

Needs 4ian/GDevelop#9453 to be merged and released first. In the released editor, the "add a new scene" step would complete at once (no scene is marked as the start scene yet), and the rest of the third chapter would use the wrong scene.

Chapter 1:

  • Leftover extension store steps: the store stayed open over the objects list. The steps are removed, and their title moves to the next step.
  • Target and block drops (42%), selecting the background: these steps set interactsWithCanvas, otherwise the blocking layer covered the scene.

Chapter 2:

  • Layer rename and hide: use the tree view layers list (#layer-1[data-scene="WinLayer"], [data-hidden="true"]).
  • Publishing: the "Generate link" step waited for an element that is gone, which sent the user back to an earlier step.
  • Share dialog: the blocking layer is disabled so the dialog can be closed after opening the game.

Chapter 3:

  • New scene: wait for a scene that isn't the start scene, instead of #scene-item-1 (tree view ids are indexes in the whole list).
  • Rename and open the new scene: kept in one step. Renaming a scene also renames it in the tutorial data, so a step waiting for the old name to disappear never advances.
  • Duplicated title: new step to press Enter first. A duplicated object starts in inline rename mode, where double clicking only selects the name.
  • "Mouse button released": use MouseButtonFromTextReleased (the visible condition, with a quoted "Left" value). MouseButtonReleased is hidden.
  • Set as start scene: wait for sceneInProjectManager:startScene:[data-default="true"].

Also:

  • check-in-app-tutorial-selectors accepts the scene state selector and the new data-default/data-hidden attributes.
  • e2e/lib/tutorialPlayer.js presses Enter when retrying to type, to commit inline rename inputs. CI replays all tutorials because of it.

Tested by playing the whole tutorial, all 3 chapters up to the end dialog, on a local editor build with 4ian/GDevelop#9453 (desktop layout, dev backend, publishing and leaderboard included). Not tested on tablet or mobile.

Not fixed here: the asset store search step can still get stuck (clearing and retyping the search unblocks it). That needs a change in the editor.


Generated by Claude Code

The draggable behavior is now added directly from the behavior dialog, but the
tutorial still opened the extension store first: the store dialog then stayed
open over the objects list and the tutorial could not be continued.
These steps highlight the object in the list but did not set interactsWithCanvas,
so the blocking layer covered the scene canvas and the drop was refused.
@4ian 4ian changed the title [Fling game] Fix tutorial getting stuck on drops and the draggable step [Fling game] Fix tutorial getting stuck on drops and the extension store Nov 30, 2026
@4ian
4ian force-pushed the claude/gdevelop-tutorials-pr-116-3lulkg branch from e6a371b to 729adde Compare November 30, 2026 13:22
…yers list

The layers list is now a tree view: a new layer enters inline rename mode and
#layer-name no longer exists. Wait for the renamed row instead.
The visibility toggle is a button (its value never changes): wait for the row
to be marked hidden (data-hidden, to be exposed by the editor).
Inline rename inputs (tree view items) are only committed with Enter.
These steps ask to select an instance on the scene but highlight a toolbar
button without interactsWithCanvas, so the blocking layer covered the scene.
The publish step highlighted the publish button until the game link appeared, but
the button disappears as soon as the export starts: after a second without its
highlighted element, the tutorial went back to the "Share" step, behind the share
dialog. Move on once the button is clicked; the next step waits for the link.
The step asks to open the game then close the dialog, but the blocking layer only
let the "Open" button be clicked: the dialog could not be closed.
Scene items ids are now based on their position in the whole project manager
tree, so #scene-item-1 never existed. Wait for a scene that is not the start
scene instead (data-default, to be exposed by the editor).
The renamed scene name was never gathered (it was read before the rename): split
the step so the name is read once the scene is renamed, then ask to open it.
[data-default] was true for any start scene, including the initial one: check it
on the new scene item (needs the editor to support a selector after the scene key).
Renaming a scene also renames it in the tutorial data, so a step waiting for the old scene name to disappear never advances.
A duplicated object starts in inline rename mode, where double clicking only selects the text of the name.
Also accept the data-default and data-hidden attributes of the scene and layer tree view items.
MouseButtonReleased is hidden: the condition listed in the editor is MouseButtonFromTextReleased, whose button values are quoted.
@4ian 4ian changed the title [Fling game] Fix tutorial getting stuck on drops and the extension store [Fling game] Fix the tutorial getting stuck in all three chapters Dec 1, 2026
4ian added a commit to 4ian/GDevelop that referenced this pull request Dec 2, 2026
Editor changes needed by the Fling game in-app tutorial fixes in
GDevelopApp/GDevelop-tutorials#117.

Don't show in changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants