Shake object
Shake an object.
Authors and contributors to this experimental extension: VictrisGames.
Shake an object (position, angle or scale).
It can be used for:
- Hit or impact
- Object slowly rocking back and forth (like a ship)
- Simulate engine vibration, earthquake, or pulsing
The top-down RPG example uses this extension for damage animations (open the project online).
Tip
Learn how to install new extensions by following a step-by-step guide.
Shake object (position, angle)
Shake objects with translation and rotation.
Behavior actions
Shake object (position, angle)
Shake an object, using one or more ways to shake (position, angle). Make sure to "Stop shaking" before starting a new shake if it uses different parameters.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2 (🔢 Number): Duration of shake (in seconds) (Default: 0.5)
- Parameter 3 (🔢 Number): Amplitude of postion shake in X direction (in pixels) (For example: 5)
- Parameter 4 (🔢 Number): Amplitude of position shake in Y direction (in pixels) (For example: 5) Use a negative number to make the single-shake move in the opposite direction.
- Parameter 5 (🔢 Number): Amplitude of angle rotation shake (in degrees) (For example: 5)
- Parameter 6 (🔢 Number): Amount of time between shakes (in seconds) (Default: 0.08) For a single-shake effect, set it to the same value as "Duration".
- Parameter 7 (❓ Yes or No): Keep shaking until stopped Duration value will be ignored
Technical note: parameter 8 are internal parameters handled by GDevelop.
Stop shaking the object
Stop any shaking of object that was initiated by the Shake Object extension.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
Technical note: parameter 2 are internal parameters handled by GDevelop.
Behavior conditions
Check if an object is shaking
Check if an object is shaking.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
Technical note: parameter 2 are internal parameters handled by GDevelop.
No expressions for this behavior.
Shake object (position, angle, scale)
Shake objects with translation, rotation and scale.
Behavior actions
Shake object (position, angle, scale)
Shake an object, using one or more ways to shake (position, angle, scale). Make sure to "Stop shaking" before starting a new shake if it uses different parameters.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2 (🔢 Number): Duration of shake (in seconds) (Default: 0.5)
- Parameter 3 (🔢 Number): Amplitude of postion shake in X direction (in pixels) (For example: 5)
- Parameter 4 (🔢 Number): Amplitude of position shake in Y direction (in pixels) (For example: 5) Use a negative number to make the single-shake move in the opposite direction.
- Parameter 5 (🔢 Number): Amplitude of angle rotation shake (in degrees) (For example: 5)
- Parameter 6 (🔢 Number): Amplitude of scale shake (in percent change) (For example: 5)
- Parameter 7 (🔢 Number): Amount of time between shakes (in seconds) (Default: 0.08) For a single-shake effect, set it to the same value as "Duration".
- Parameter 8 (❓ Yes or No): Keep shaking until stopped Duration value will be ignored
Technical note: parameter 9 are internal parameters handled by GDevelop.
Stop shaking an object
Stop shaking an object.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
Technical note: parameter 2 are internal parameters handled by GDevelop.
Behavior conditions
Check if an object is shaking
Check if an object is shaking.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
Technical note: parameter 2 are internal parameters handled by GDevelop.
No expressions for this behavior.
This page is an auto-generated reference page about the Shake object extension, made by the community of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop community-made extensions here.