Object offset with zooming

For questions about using Classic.

Post » Sat Jul 16, 2011 11:14 pm

So the end result is to have my game rendered at more than one resolution. I am not trying to use the Window object to scale--there is no performance increase like one would typically expect for a lower resolution. The correct way, as far as I can tell, is to set the 'display size' value and then zoom out (or in).

The two resolutions I'm working with are 1280x720 and 853x480. I have just a simple event set up to test going back and forth between them:

This keeps the correct (close enough) aspect ratio for the non-zoomed layers. I'm not that worried about the hud--that's a simple fix. But every other layer is offset. They have different scroll rates for a parallax effect.

(I downscaled the larger image to more clearly show the large offset)

Changing the zoom rate fixed nothing, changing 'Unbounded Scrolling' changed nothing. Disabling layout binding for magiccam fixes nothing.

What do I need to do to be able to have layers stay where they're supposed to? The window object doesn't help, it doesn't actually render the game at a different resolution... it just scales the 1280x720 image. Especially unhelpful for a fullscreen game

I cannot post a cap, it is too large to reasonably upload.
Posts: 962
Reputation: 18,026

Post » Mon Jul 18, 2011 10:38 pm

shared in chat, but in case anyone else needs, also, c7, you were afk, when I found the final solution, so here ya go:
(replace 1024 with the resolution you used to design and test your level)
left and right click to change resolutions

http://dl.dropbox.com/u/1013446/movingstuff.caplucid2011-07-18 23:20:08
Spriter Dev
Posts: 3,285
Reputation: 17,151

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest