Skip to reading
Shaders, Effects & Layered Scenery

73. Combine a burst, sound and zoom blur

Edition 0.86.4.0

Revised 0.86.4.0 edition with new supplements; earlier 0.86.3.4 lessons and screenshot labels are retained within the supplied PDF.

Download PDFView illustrations

Figure 39. A held Zoom Blur makes its radial effect easy to inspect. Use a short timed pulse for ordinary gameplay.

Code example
extends PCAScriptBase
Code example
func run() -> void:
    await ChangeObjectProperty({"entityId":"blast",
        "property":"particle.enabled","value":false})
    await ChangeObjectProperty({"entityId":"blast",
        "property":"particle.enabled","value":true})
    await PlaySound({"assetId":"chime","channel":"impact"})
    await ZoomBlur({"strength":0.3,"duration":0.6,
        "centerX":0.5,"centerY":0.5,"clearRadius":0.12,
        "includeGUI":false,"wait":false})

This starts an authored explosion and a sound, then adds a 0.6-second radial pulse. Clear Center Radius keeps the focal region less blurred. Center X/Y are normalized coordinates: 0.5,0.5 is the center.

A positive Zoom Blur duration rises and falls, then clears. Duration 0 holds the effect until Stop Zoom Blur. A new blur replaces the old one. Keep Include GUI off initially so dialogue and inventory stay readable.

Page 77 of 93Permalink
Go to page