Addon ID

  • lgshake

Info

  • License MIT License
  • Copyright icon Copyright Luiz Gama. All rights reserved.

Statistics

  • Download count315 total downloads
  • Latest download count 19 downloads of latest version
  • Average download count2 downloads per day average

Owners

Description

Shake an object's position or angle.

Example Files

An example to demonstrate the behavior shaking sprites using X/Y axis

Discussion

  • 4 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • If you want simple and fast customizable shake behavior this is the spot. Good job!

  • 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