Jump to content

Good ‘shake screen’ function ideas


Recommended Posts

Hi guys

Just wondering if anyone has a good ‘screen shake’ code snippet/idea they might want to share.

Currently I’m using a basic effect using a tween and a bounce easing setting, but it doesn’t look as good it should.

Also, any ideas on a good way to shake a sprite. I’ve tried doing this but the code gets pretty long.

Thanks in advance!


Link to comment
Share on other sites


Depends on what you are tweening. If your tween is changing sprite's position and you try to also change the position with shake function, then of course you will run into problems.

Remember that container and sprite are almost same thing (Sprite extends from Container), except that sprite just does have texture that gets rendered.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...