[Solved] Shake/Vibrate Sprite
Posted: Wed May 16, 2018 12:49 pm
Hello!
I'm trying to figure out a way to make a character sprite shake/vibrate around in place to represent frustration or quivering in fear.
I dug around for an answer and found this, and added vertical movement to get this:
It's close, but it's not quite what I'm after. The sprite will move left, right, up, down, repeat, drawing a "corner" shape over and over. I want a more erratic shake in any direction.
I tried using Choice statements to break them up in various ways, but that usually just made the sprite move in a more robotic fashion (which admittedly was very cool and made me wish my story had sci-fi elements).
Any thoughts on how to achieve a more erratic look? Doesn't have to be random, as long as it looks like shaking on both the X and Y axis.
I'm trying to figure out a way to make a character sprite shake/vibrate around in place to represent frustration or quivering in fear.
I dug around for an answer and found this, and added vertical movement to get this:
Code: Select all
transform shake:
linear 0.090 xoffset -10
linear 0.090 xoffset +0
linear 0.090 yoffset -10
linear 0.090 yoffset +0
repeat
I tried using Choice statements to break them up in various ways, but that usually just made the sprite move in a more robotic fashion (which admittedly was very cool and made me wish my story had sci-fi elements).
Any thoughts on how to achieve a more erratic look? Doesn't have to be random, as long as it looks like shaking on both the X and Y axis.