How do I make sure a object is always on screenposition

0 favourites
  • 6 posts
From the Asset Store
This Girls Game allows young fashionistas to develop their taste and skills as a fashion designer.
  • Hi yall,

    After using Construct 2 for a while i get wiser every day.

    My game i am working on is full-screen and will never show borders ( i hope ).

    It re sizes as the screens are different.

    Though i am not sure if it is possible to put a object related to screen size.

    I have a action button which i would like to have on the same position on whatever screen some one uses.

    Lets say i want this button to the left bottom corner. But always at the same position lets say 16 px margin bottom and 16 px margin left.

    Currently i'm using the anchor position and this works, but once the screen is a little more wide it will shift to the right.

    The height works as i want it to work. This is also the perfect example. As you re size the screen the height of the button will always be on the same height.

    Let me know if this is possible.

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Are you sure the object with the anchor-behaviour is on a layer with paralax 0,0?

  • LittleStain

    Yep, i found that out the hard way .

    The object itself is positioned great, Also when the camera scrolls it will stay at it's position. The only thing is if i resize my browser screen it will slide left or right ( only while resizing ).

    I suck at explaining in text, let me show you the following image:

    ( Black things are screensizes )

  • Are these the properties?

    left edge : window left

    top edge : window bottom

  • Nope it was not. It was set to nothing.

    Trying that actually works ! Only if the height will become to big it will stretch.

    Though as far as i know there wont be any mobile / tablet screen that has a bigger height than width.

    If it's the case i'm fine with this solution!

    Thanks a lot!

  • All I did was visit the manual to get the answers:

    manual on anchor behaviour

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