I know you have SSK2.
You’re probably not aware of this, but it detects what I call ‘unused’ space, both horizontally and vertically.
Assuming your level is in a group, off the cuff I think the fix would be something like this:
if(unusedHeight ~= 0) then -- or is unusedWidth I may be goofed up here?? group.y = group.y - unusedHeight/2 end
PS - The whole unused* name is a bit of misnomer, but it is legacy for SSK so I didn’t change it. Basically either unusedWidth or unusedHeight will be non-zero for a letterbox scaling case where the aspect ratio does not match the content resolution aspect ratio. This results in those ‘black’ bars that new users often encounter.
For example, if the unusedHeight is 80, the there is a 40 pixel tall bar at the top and bottom of the screen.
In your case, you’re over-drawing the bottom area, but your top of screen is offset.