Skip to reading
GDScript Programming & Godot

ZoomBlur()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Zoom Blur

Play a radial zoom blur around a normalized screen center, optionally including GUI and waiting for completion.

Source table from ZoomBlur(), page 146
Option key / fieldMeaning and inputDefault
Strength strengthNumber; decimals allowed. Range: 0 to 1.0.7
Duration (seconds) durationTime in seconds for this action. Read its timing note before assuming it waits. Range: 0 to 60.0.6
Center X (0-1) centerXNormalized horizontal effect center: 0 left, 0.5 middle, 1 right. Range: 0 to 1.0.5
Center Y (0-1) centerYNormalized vertical effect center: 0 top, 0.5 middle, 1 bottom. Range: 0 to 1.0.5
Clear Center Radius clearRadiusRadius around the zoom-blur center kept comparatively clear. Range: 0 to 0.8.0.08
Direction directionChoose: inward, outward."inward"
Include GUI in Effect includeGUIApply the screen effect to interface presentation as well.false
Wait Until Finished waitWhether this action should wait for its own effect to finish.false

Timing. Waits when Wait is on.

Code example
await ZoomBlur({"strength": 0.7, "duration": 1, "centerX": 0.5})

In use. Use a brief outward pulse when the signal comes online. Center X/Y run from 0 to 1, so [0.5,0.5] is the middle. Keep Include GUI off when text must remain crisp.

Page 146 of 378Permalink
Go to page