Orthographic Bounds (SOLVED)

My resolution is 480 x 320 with an orthographic camera (from the Asset Portal) in the center. I’m using the FIXED_AUTO projection. If I use the function:

camera.bounds(hash("/camera"), 0, 320, 480, 0)

The camera game object’s position skyrockets into the void to like <3e23, 15e47, 0> and continues rising like this. Can we not use the bounds function with a fixed auto projection? I’d like to add a feature where you can push a button and the camera “zooms out” and perfectly displays the entire level.

This should work. Can you please open a ticket on GitHub? https://github.com/britzl/defold-orthographic/issues

1 Like

Done, apologies for the delay. Let me know if there’s anything else you’d like to see in the project.

FYI: This issue has finally been fixed thanks to a user contributed PR

2 Likes