Layout Size and Position [SOLVED]

0 favourites
  • 5 posts
From the Asset Store
A versatile and wide-ranging selection of large to medium-sized creature sounds.
  • I have been playing around with the Layout size and angle and Layer size and angle.

    Is there a way to get the Layout to change position relative to the window?

    I would like the Layout to be at a slight angle and be in the middle of the window. Say a Window of 800 x 800 and a Layout of 600 x 600 I would like there to be a visible border of 100 around the entire layout.

    is this possible within Construct 2 or do I need to go to Canvas drawing for that?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Nobody has anything on this?

  • Sorry, not 100% sure what you mean, but please find the attached. I've set it so that the layout rotates 1 degree every tick. If you want, you can change it so that at the start of the layout, it is just set to a certain angle.

    CAPX here

  • Thanks for replying,

    The angle is not an issue.

    The layout by default is anchored to the window at 0, 0.

    I would like to anchor the layout in the middle of the window.

    So the layout would start at 100, 100 with the window being larger than the layout.

    I can find nothing that allows for this.

  • OK, I solved this for myself.

    The unbound scrolling was the key.

    I have an invisible sprite in the center of my layout with Scroll To behavior.

    The window size is set for 800, 800 while the layout size is 640, 480.

    This will allow me to have my Game Layout in the center of the screen.

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