Shake Screen
Category: Screen
Event content that shakes the entire screen. Used for powerful vibration effects using the whole screen, such as explosions, earthquakes, triggering of great techniques, or impact of being hit.
Wide shake range
- Shake Screen (this event content): Entire screen (all images, windows, buttons shake together)
- Shake Image: Only 1 image
- Shake Window: Only 1 message window
Not shortened by the Skip button
Unlike other time animations (image fade / move / rotate / scale), this event content is not shortened even if the Skip button is pressed. Since shaking is usually short-term (under 1 second), it is excluded from the Skip target.
If you design long-duration shaking, assume it will not be skipped.
Property List
| Item (tscn label) | Input format | Description |
|---|---|---|
| Type | Selection | Direction and speed of shaking (9 types, common with Shake Image) |
| Intensity | Number (px) | Maximum displacement of the shake (in pixels) |
| Time (sec) | Number (seconds) | Duration of the shake |
| Is Wait | Checkbox | If ON, does not proceed to the next event content until shaking completes |
| Pos Correction Upon Completion | Checkbox | If ON, returns the screen to the accurate origin position when shaking ends |
Property Details
Type
You can choose the direction and speed of the shake from 9 types. The same types as Shake Image are available.
| ID | Name | Direction | Speed characteristics |
|---|---|---|---|
| 0 | Pitch (moment) | Vertical (up/down) | Instantaneous, strong, and short |
| 1 | Roll (moment) | Horizontal (left/right) | Instantaneous, strong, and short |
| 2 | P and R (moment) | Diagonal (vertical + horizontal) | Instantaneous diagonal |
| 3 | Pitch (slow) | Vertical (up/down) | Slow shaking |
| 4 | Roll (slow) | Horizontal (left/right) | Slow shaking |
| 5 | Pitch (standard) | Vertical (up/down) | Standard shaking |
| 6 | Roll (standard) | Horizontal (left/right) | Standard shaking |
| 7 | Pitch (quick) | Vertical (up/down) | Fast and fine |
| 8 | Roll (quick) | Horizontal (left/right) | Fast and fine |
Typical usage:
- Explosion / impact: Pitch (moment) or P and R (moment)
- Earthquake (long duration): Pitch (slow) or P and R (moment) for a long time
- Taking a hit in battle: Pitch (moment) or Roll (moment)
- Magic chanting / activation: Pitch (slow) for a gentle vibration
Intensity
Specifies the maximum displacement of the shake in pixels. Since it shakes the entire screen, slightly larger values than Shake Image look better.
- 0 or 1-2: barely shakes
- 5-10: fine vibration (quiet effect)
- 15-30: clear shake (general impact)
- 40-60: violent shake (large explosion / earthquake)
- 100+: large vibration where the screen clearly comes off-center
Time (sec)
Specifies the duration of the shake in seconds.
- 0: Does not execute the shake (wait property is also disabled)
- 0.3-0.5: Momentary impact
- 1.0-2.0: General shaking
- 3.0+: Sustained earthquake / vibration
Is Wait
Specifies whether to wait until shaking completes before proceeding to the next event content.
- ON: Wait for the next event content until shaking completes
- OFF: Proceed to the next event content immediately even while shaking is in progress (when you want to display the next text in parallel with shaking)
- If Time = 0, this property has no effect
Pos Correction Upon Completion
Specifies whether to snap the screen back to its original origin position when shaking ends.
- ON: Upon completion of shaking, internal position is reset to 0 (screen reliably returns to origin)
- OFF: Offset at the end of shaking remains, and stops at a slightly offset position
Which to choose
When subsequent event content requires an accurate screen position, ON is recommended. Normally ON is fine.
Runtime Behavior
When this event content is executed, the following processing is performed in order:
1. Saving shake data
The following is recorded internally:
- Shake type, intensity, time
shake_now_time = 0(elapsed time reset)- Is Wait, position correction settings
- Current screen position recorded in
base_pos_x,base_pos_y
2. Shake execution
Time progresses by delta each frame in _process, and the Shake.shake() function calculates the shake coordinates (shake_pos_x, shake_pos_y). The actual screen position is:
general_group.position = (base_pos_x, base_pos_y) + (shake_pos_x, shake_pos_y)This causes all nodes displayed on screen (images, windows, buttons, choices, etc.) to shake together.
3. Processing on completion
- When time elapses, shaking ends
- Position correction ON: Reset
base_pos_x = 0, base_pos_y = 0, shake_pos_x = 0, shake_pos_y = 0(screen reliably returns to origin) - Position correction OFF: Values at end of shaking remain as is
- If Is Wait ON, proceeds to the next event content here
4. Not subject to Skip button
Unlike other time animation event contents, this event content is not subject to Skip clamping. Even if Skip is pressed on entry or during execution, the shake duration is not shortened.
Typical Usage Flows
Flow 1: Explosion effect
Shake the entire screen with a strong impact:
- Show Text ← "BOOM!"
- Shake Screen (this event content) (Type: P and R (moment), Intensity 40, Time 0.8, Is Wait ON, Pos Correction ON)
- Show Text ← "...what just happened?!"
Flow 2: Earthquake scene (long duration)
Floor continues to shake in an earthquake scene:
- Show Text ← "An earthquake!"
- Shake Screen (this event content) (Type: Pitch (slow), Intensity 15, Time 5.0, Is Wait OFF, Pos Correction ON)
- Show Text ← "Let's run!" (shown during shaking)
Flow 3: Hit effect
Screen vibration at the moment the character is attacked:
- (Attack animation)
- Shake Screen (this event content) (Type: Pitch (moment), Intensity 20, Time 0.4, Is Wait ON, Pos Correction ON)
- Show Text ← "Argh!"
Flow 4: Omen before great technique
Flow from magic chanting to activation:
- Shake Screen (this event content) (Type: Pitch (slow), Intensity 5, Time 2.0, Is Wait ON, Pos Correction ON) ← Gentle vibration
- Show Text ← "Source of my power..."
- Shake Screen (this event content) (Type: P and R (moment), Intensity 60, Time 1.0, Is Wait ON, Pos Correction ON) ← Large vibration at activation
- Show Text ← "Ignition!"
Flow 5: Combined use of screen shake and image shake
Entire screen + specific character shaking even more intensely:
- Shake Screen (this event content) (Intensity 10, Time 1.0, Is Wait OFF, Pitch (moment))
- Shake Image (Number 1, Intensity 30, Time 1.0, Is Wait ON, Pitch (quick)) ← Target image shakes even larger
Overlapping of internal calculations
Shake Image adds image-unit shake, while Shake Screen changes the entire screen's position, so running them in parallel composes the shaking.
Flow 6: Screen shake + shake sound
Impact expression combining visual and sound:
- Play Sound ← Impact sound
- Shake Screen (this event content) (Intensity 30, Time 0.5, Is Wait ON, Pitch (moment))
Typical Combinations
For the full picture, see Combination Patterns.
Impact expression
Expression at the moment of taking an attack or explosion:
- Play Sound
- Shake Screen (this event content)
- Show Text ← Line after impact
Overlapping screen shake + image shake
Emphasize overall + specific target:
- Shake Screen (this event content) (Intensity 10, Time 1.0, Is Wait OFF)
- Shake Image (Intensity 30, Time 1.0, Is Wait ON)
Earthquake scene (sustained shaking)
Execute other event content in parallel during long shaking:
- Shake Screen (this event content) (Time 5.0, Is Wait OFF, Pitch (slow))
- Show Text ← Line during shaking
- Show Image ← Effect image during shaking
Combined use with battle effects
At the time of triggering a great technique in battle:
- Show Text ← "○○'s awakening!"
- Shake Screen (this event content) (Intensity 40, Pitch (moment), Time 1.0, Is Wait ON)
- (Damage processing, etc.)
Related Event Content
| Related event content | Purpose |
|---|---|
| Shake Image | Shake per single image (same 9 types as this event content) |
| Shake Window | Shake a text window (same 9 types as this event content) |
| Fade Out Screen | Screen fade out |
| Fade In Screen | Screen fade in |
| Play Sound | Combine with impact sound to enhance effects |
Related Pages
| Page | Related content |
|---|---|
| Event Content List | List of all event contents |
Notes
Entire screen is the target
This event content shakes all nodes on screen (images, windows, buttons, choices, etc.) together. To shake only a specific image, use Shake Image.
Not subject to Skip (important)
Unlike other time animation event contents (image fade / move / rotate / scale, etc.), this event content is not shortened even by the Skip button. If designing long-duration shaking, assume players cannot skip it.
Ignored when Time is 0
If Time = 0, shaking is not executed, and the wait property is also disabled.
Position correction OFF leaves slight offset
When position correction is OFF, the offset at the end of shaking remains, so the screen position stops in a slightly offset state. If subsequent event content requires an accurate position, use position correction ON.
Intensity is in pixels; larger values look better
Since the entire screen is shaken, slightly larger intensities (around 20-60) look more natural than Shake Image.
Overlapping with image shake
Running this event content in parallel with Shake Image composes the shaking of both. Can be used for effects that emphasize overall + specific target.
