Skip to reading
The Cutscene Designer

B2. Skip button and reusable accent

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
On this page

skip_intro: normal skip request#

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

Assign skip_intro to the skip Button’s Click event. It respects the cutscene’s Skippable option.

cinematic_helpers: entry and exposed function#

Code example
extends PCAScriptBase
Code example
func run() -> void:
    await accent(0.35)
Code example
func accent(power: float = 0.35) -> void:
    await ZoomBlur({
        "strength":power, "duration":0.6, "wait":false
    })

Run Script calls run(), which uses the default accent. To edit power on a cutscene event, expose accent as Camera Accent, with one float parameter named power and default 0.35. Choose Use Definitions, then select Call Script Function.

Adding parameters to the callable definition does not rewrite the code function. Keep the definition’s names, types and order aligned with the actual function.

Page 70 of 78Permalink
Go to page