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.