How do I add layout height in events?

0 favourites
  • 10 posts
From the Asset Store
14 amazing sound files of game events like Level Ups, Level Completes, object spawn, object taking etc.
  • for example when ball falls from top to down and its outside layout height of layout should double

    On start layout size is 480x854

    when ball is outside layout add to height 854

  • As far as I know, you can't set Layout Height dynamically...

  • i dont see anything like that in events options, only set canvas size but dont work

  • why when i try use

    WindowHeidh x2

    and also try

    layoutHeight x2

    always my window is grows not game area

  • This is not what i expected <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink"> https://www.dropbox.com/s/rasoqn1emr1q1 ... 3.wmv?dl=0

  • What is the game about? Not really sure what you are trying to achieve. Do you just want your ball to fall and the player avoids obstacles?

  • From the Construct manual:

    "Set canvas size

    Set the size of the canvas area in the page, if appearing inline to the page (i.e. a fullscreen mode is not used). If a fullscreen mode is in use, this effectively changes the size of the Window size project property, which adjusts the size of the viewport."

    As I said before, you can't set layout size dynamically. You are mixing Layout and Viewport/Window. These are two different things. Imagine your construct app/game as something you look through an actual window:

         +--------------------------------+
        /             B                  /
       /          +--------+            /
      /          /   A    /            /
     /          +--------+            /
    +--------------------------------+
    [/code:4xmvrgdt]
    
    B is the full Layout, A is the Window through which you see the Layout. As far as I know you can set the window size dynamically, using set canvas size, but not the layout size.
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • From the Construct manual:

    "Set canvas size

    Set the size of the canvas area in the page, if appearing inline to the page (i.e. a fullscreen mode is not used). If a fullscreen mode is in use, this effectively changes the size of the Window size project property, which adjusts the size of the viewport."

    As I said before, you can't set layout size dynamically. You are mixing Layout and Viewport/Window. These are two different things. Imagine your construct app/game as something you look through an actual window:

    >      +--------------------------------+
        /             B                  /
       /          +--------+            /
      /          /   A    /            /
     /          +--------+            /
    +--------------------------------+
    [/code:2h1v5y0s]
    
    B is the full Layout, A is the Window through which you see the Layout. As far as I know you can set the window size dynamically, using set canvas size, but not the layout size.
    

    i see, its not possible set bigger 'B' area? poor c2;/

  • i see, its not possible set bigger 'B' area? poor c2;/

    Not dynamically. But, in general, the thing you want to do by increasing the layout size can probably be done in another way. If we had more info on that we might find a solution.

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