Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Good ‘shake screen’ function ideas


Ninjadoodle
 Share

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

@Ninjadoodle

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

 Share

  • Recently Browsing   0 members

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