A Behavior that shakes the object, for Construct 3.
Author: piranha305
Website: https://piranha305.itch.io/
Download Latest Version : Version: 1.0.0.0
Made using c3ide2-framework
To build the addon, run the following commands:
npm i
node ./build.js
To run the dev server, run
npm i
node ./dev.js
The build uses the pluginConfig file to generate everything else. The main files you may want to look at would be instance.js and scriptInterface.js
| Property Name | Description |
|---|---|
| Enabled | Enable or disable the shake behavior. |
| Duration | Duration of the shake in seconds. |
| Magnitude | Magnitude of the shake. |
| Magnitude Mode | Magnitude mode. (Select if the magnitude is constant or decays over time) |
| Shake Axis | Shake axis. (Select which axis to offset) |
Description:
Enable or disable the shake behavior.
Type:
check
Description:
Duration of the shake in seconds.
Type:
float
Description:
Magnitude of the shake.
Type:
float
Description:
Magnitude mode. (Select if the magnitude is constant or decays over time)
Type:
combo
Options:
- constant: Constant
- decay: Decay
Description:
Shake axis. (Select which axis to offset)
Type:
combo
Options:
- xy: Shake XY Axis
- x: Shake Only X Axis
- y: Shake Only Y Axis
| Action | Description |
|---|---|
| Enable | Enable the behavior. |
| Start Shake | Start the shake. |
| Stop Shake | Stop the shake. |
| Set Duration | Set the duration of the shake. |
| Set Magnitude | Set the magnitude of the shake. |
| Set Magnitude Mode | Set the magnitude mode of the shake. (Select if the magnitude is constant or decays over time) |
| Set Shake Axis | Set the axis of the shake. |
Description:
Enable the behavior.
| Name | Type | Description |
|---|---|---|
| Enabled | boolean | Enable or disable the shake behavior. |
Description:
Start the shake.
Description:
Stop the shake.
Description:
Set the duration of the shake.
| Name | Type | Description |
|---|---|---|
| Duration | number | Duration of the shake in seconds. |
Description:
Set the magnitude of the shake.
| Name | Type | Description |
|---|---|---|
| Magnitude | number | Magnitude of the shake. |
Description:
Set the magnitude mode of the shake. (Select if the magnitude is constant or decays over time)
| Name | Type | Description |
|---|---|---|
| Magnitude Mode | combo | Magnitude mode. |
Description:
Set the axis of the shake.
| Name | Type | Description |
|---|---|---|
| Shake Axis | combo | Shake axis. |
| Condition | Description |
|---|---|
| On Shake End | Triggered when the shake ends. |
| Is Shaking | Check if the shake is in progress. |
Description:
Triggered when the shake ends.
Is Trigger:
true
Description:
Check if the shake is in progress.
| Expression | Description |
|---|---|
| Duration | Get the duration of the shake. |
| RemainingDuration | Get the remaining duration of the shake. |
| OriginX | Get the origin X of the shake. |
| OriginY | Get the origin Y of the shake. |
Description:
Get the duration of the shake.
Return Type:
number
Description:
Get the remaining duration of the shake.
Return Type:
number
Description:
Get the origin X of the shake.
Return Type:
number
Description:
Get the origin Y of the shake.
Return Type:
number