Question - IDE Why does my room think this is where 0,0 is?

Discussion in 'GameMaker Studio 2 Community Tech Support' started by Beztom, Jan 11, 2020.

  1. Beztom

    Beztom Member

    Joined:
    Jan 11, 2020
    Posts:
    2
    Please excuse the potentially beginner question - I'm a definite beginner and might be being really dumb - but I'm absolutely perplexed by this.

    I've been trying to create an object programmatically at 0,0 and it's been putting it in the middle of my game window.

    When I've come into the room editor to test if it works manually, it still thinks 0,0 is in the middle of the screen somewhere. Note the instance's position and how that's different to where the cursor thinks it is.

    Thanks very much in advance

    [​IMG]
     
  2. TsukaYuriko

    TsukaYuriko Q&A Spawn Camper Forum Staff Moderator

    Joined:
    Apr 21, 2016
    Posts:
    1,840
    Check spr_tile_default's origin in the sprite editor - it may be as confused about where 0,0 is as you are.
     
  3. Beztom

    Beztom Member

    Joined:
    Jan 11, 2020
    Posts:
    2
    Thank you - that has done it. Was at some ridiculous offset :)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice