0 Favourites

Out of layout objects capture

  • First of all, a "hello world" to you all :)

    So here is my problem:

    I have a project that has to work on various platforms, be it Android (CocoonJS), iOS, various browsers... the project has to be pixel perfect, so no stretch is allowed (Fullscreen in browser: Corp). We found we can achieve this by "anchoring" the objects which we reload in another resolution when window sitze exceeds certain limits (ie. we have 3 sets of sprites, one for small UI (low res), medium and high). Basically, the UI moves around in a way that there is more and more space between objects and when we reach certain window size, we insert biger images.

    Anyways, this is not the main issiue. The promlem is the following:

    We want to swipe between layouts. This would normally work in such a way, that we copy the content into canvas, load new layout, paste canvas image to center (move our camera scroll) and scroll from the canvas image to the newly loaded layout. This all works fine (Copy layout to canvas function), but when we have objects outside our layout size, they are not copied to canvas via this function. Instead, it just captures the actual content ON layout and stretches it to our canvas which is in size of the window.

    Is there a way to fix this, taking into consideration we have to work with small layout (we don't want to render 1080p image on 320p mobile phone) and it has to be supported on most platforms, while project is set to "corp".

    <img src="http://shrani.si/f/Y/c6/mswRNXK/untitled.jpg" border="0" />

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Ofcourse, my terminology is rather basic, if I was at any point unclear and my problem needs to be explained in greater detail, please let me know and I will try to explain it in greater detail.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
167 14,497
DMT2005's avatar
DMT2005
Unread hot topic
132 29,591
chadorireborn's avatar
chadorireborn
Unread hot topic
52 8,563
BluePhaze's avatar
BluePhaze