Orthographic Camera Shake

Hi,

I’m using the orthographic camera.

Currently my game consist of only one scene with one camera. I made sure I’m using the orthographic render script in the bootstrap.

When I send a shake message to the camera nothing happens.

msg.post("camera", "shake", { intensity = 0.07, duration = 0.25, direction = hash("both") })

I also noticed than when I change the projection in the camera’s configuration script from DEFAULT to FIXED_AUTO or FIXED_ZOOM nothing happens.

Am I missing any configurations for the camera to work properly?

I made a game with the orthographic camera 2 years ago and the shake message worked like a charm. I’m pretty much using the same code. I also notice that when I opened this old project the shake stop working in that one too.

Thanks :slight_smile:

I’m not sure what could be wrong. No errors in the console in the Defold editor? Is the example project that comes bundled with Orthographic also have problems with screen shake?

Please create an issue on GitHub and if possible attach a small project where this problem can be seen.

@britzl my bad. I had only guy elements on scene and I just realized that shaking the camera only affects spirts in game objets no gui elements.

Thanks for your reply though. Looking at the example made me realize that :sweat_smile:

1 Like