Shake an object's position or angle.
An example to demonstrate the behavior shaking sprites using X/Y axis
If you want simple and fast customizable shake behavior this is the spot. Good job!
Thanks for the feedback! 🙌
This is super helpful! I have two things to note: first, the "Enforce position" parameter for the Shake action doesn't work if multiple shakes happen at once (for example, if a button that shakes is spam-clicked). This may or may not be solvable.
Second, it might be useful to add a condition to the behavior that lets it detect whether it's shaking or not. This could be useful in circumventing the first problem, since you could make it so that a new shake can't start if the object is still shaking. Other than that, great addon!
New version 1.1.3.0 is available.
I’ve made a small update to the addon...
- Added “Is shaking” condition to check if the object is currently shaking
- Added "IsShaking" expression (returns 1 when shaking, 0 when not)
- Fixed Enforce Position bug where re-triggering a shake caused position drift