Skip to reading
The Cutscene Designer

47. Add a mouse or touch skip button

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView PDF page

1. Create a GUI with ID skip_controls, hidden by default and activated by a trigger.

2. Place a readable Button in a screen corner. Give it a label such as Skip introduction.

3. Set its Click event to Run Script and select skip_intro.

4. Let the wrapper show the GUI before playback and hide it afterward.

5. Test clicking the real button while gameplay input is locked.

Code example
extends PCAScriptBase
Code example
func run() -> void:
    Runtime.cutscene_runner.skip()

This script requests a normal skip and respects Skippable. It is different from force-stopping the cutscene. If you make the sequence unskippable, do not present an apparently usable Skip button; the wrapper only shows it when the option is enabled.

Keep the GUI non-modal unless you deliberately need a modal layer. A cutscene input lock blocks ordinary world commands; it should not prevent your authored cinematic controls from doing their own job.

A new cutscene does not automatically acquire the Clockmaker demo’s touch skip interface. That interface is authored content. Create and assign your own button or use an equivalent established project control.

Page 51 of 78Permalink
Go to page