Hi all. I’m very new to Defold, but am liking what I see so far! I had previously been using GameMakerStudio 2, which I also really like (and has been growing impressively in recent years) but the jankiness of the UI and lack of a standard programming language got to me in the end. Prior to that I was hand rolling C++/asm.
I’ve been looking at the camera and rendering related documentation, but I’m slightly struggling to find what I need. I’m trying out a 2D pixel style game, and have set up nearest neighbour filtering, camera zoom and all of that, but I’m still finding it hard to get the viewport right.
What I really want is something like the GMS “viewports” feature. Where you can define a rectangle that a camera will focus on. I typically set the viewport to match the overall window size to get the desired effect (optionally with object following, which I see Defold also supports).
Is there a way to say, either via the camera or default render script, “display/focus on this rectangle” in world coords (or any other coord system)?