Positioning Objects

0 favourites
  • 2 posts
From the Asset Store
Welcome! I-Spy (Hidden objects) is an educational puzzle that is more than just seek-and-find activities.
  • Hi,

    I want to centre an object on the screen so I used set position and entered the coordinates as:

    X WindowWidth / 2

    Y WindowHeight / 2

    This doesn't work - the object appears bottom right of the screen. If I enter the numbers (320, 240 for the default window size) then the object appears in the correct position.

    What am I doing wrong?

    Cheers,

    Martin

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Actually, This is kinda weird... I have been having problems placing items in the exact spot since the update... Re-run your project and click on the Project folder and change the Fullscreen in browser setting to off.(on the left).

    You should now see it center a bit better, but it is still off... I made the window and layout 800x600 and a sprite at 800x600 and when I center it as you state above it is about 1/2 inch to the right and down... This may be a BUG... anyone else want to verify this on their own?

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