im Confused;need levels to be a different size

0 favourites
  • 12 posts
From the Asset Store
220 Food Sprites in 16x16 pixel size. Perfect for items for a retro style game.
  • i Have created a BrickBuster game and I want to change the shape of the layout for a few levels. For instance my first level has a (Close to) square layout shape. Now i want the next level to be much longer than it is wide.....my confusion is how exactly i should go about doing this. If i make all the objects smaller they will be too small not to mention the level is too square. i would like the layout to be much longer than it is wide.

  • You can set the layout widths and heights for each layout.

    Open the desired layout, and on your left you will have "Layout size" and enter the desired size.

    You have 2 size indicators in construct 2.

    1. is your project view window, the actual size it will try and show in the browser/device.

    2. is the layout size.

    The project view window is like a window on top of your layout, and will only show the bits the window size allows you to see.

    So for instance, if you have a project window of 800 wide, and a a layout of 1600 wide, the project view window should only show half of your layouts total width.

  • In this case my level sizes will always be the same as the window size. what i want to do is change the project veiw window to be longer without going off screen or leaving a bunch of empty space, if i try to enlargee the project veiw window than the smaller or more square level shows a big empty white space at the bottom of the screen.

  • the layout size itself is much bigger than the window size but is unused

  • In this case my level sizes will always be the same as the window size. what i want to do is change the project veiw window to be longer without going off screen or leaving a bunch of empty space, if i try to enlargee the project veiw window than the smaller or more square level shows a big empty white space at the bottom of the screen.

    The project view window can be relative.

    This could have to do with the scaling option you set.

    Try setting fullscreen in browser to letterbox integer scale to get the actual size in your browser.

  • i think im doing a bad job of explaining what im trying to do, or maybe there is just a simple solution but, i set fullscreen browser to leterbox interger scale and its the same. my first level has a height of about 400, my second layout has a height of about 900, so in otherwords my background tile and everything within it is only about half of the way to dotted line on bottom. in the browser theres a big white box bellow my level

  • theres no way to change the window size for each level so i must be in the wrong menu. i was hoping there was a way to set the window size to the size of my background layer since that layer is always going to be the size i want my project veiw window to be

  • i think im doing a bad job of explaining what im trying to do, or maybe there is just a simple solution but, i set fullscreen browser to leterbox interger scale and its the same. my first level has a height of about 400, my second layout has a height of about 900, so in otherwords my background tile and everything within it is only about half of the way to dotted line on bottom. in the browser theres a big white box bellow my level

    And in the editor, on the layout with height 900, you have actually filled the layout ?

    Perhaps you could show a capx?

  • i have just added an achor behavior to the background image....maybe scroll to is the behavior im looking for?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • i havent filled the layout because only level 2 is supposed to be so tall

  • i used scroll to behavior on background and then added an event(on start of layout set canvas size to background height and width, which seems to be working, still interested in any other possiblities or more eficient ways to set this up

  • The thing is, you can change your layout size by changing to another layout, but you can not change your project view window size during this change. The project view window (the games canvas size) remains the same and if not mistaken, can not be changed during runtime of the game.

    If you load a bigger layout, you have to accomodate this in your game mechanics, like having a method to change your project window location, say camera view, to another position.

    I would guess having the camera follow the bat and the ball with the scroll to behaviour could do the trick your looking for.

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