Jump to content

Offset the world or camera by a point (for screen shake)


oxysoft
 Share

Recommended Posts

I want to add screen shake to my game but can't find a good way to do it.

 

I was hoping the camera object would have an offset point that I could have set to whatever I want without having to touch the camera's position but that was not the case. After that, I checked in World and because it is a group, I tried setting its fixedToCamera to true and then use cameraOffset but, much to my deception, did not work either

 

The only *solution* I found by searching online was to use an outdated plugin or set the World's bounds, which I rather not do because the bounds is used to keep sprites inside and I do not want to have to deal with any bug that could arise from it

 

What are my options? I really wish there was a camera offset, that would be very useful

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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