Object offset with zooming

This forum is currently in read-only mode.
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • 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:

    <img src="http://www.adamprack.com/scroll/event.jpg" border="0" />

    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.

    <img src="http://www.adamprack.com/scroll/scroll1.jpg" border="0" />

    <img src="http://www.adamprack.com/scroll/scroll2.jpg" border="0" />

    (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 <img src="smileys/smiley17.gif" border="0" align="middle" />

    I cannot post a cap, it is too large to reasonably upload.

    Thanks!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.cap

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)