GMS 2 [SOLVED] A question regarding tile placement in a room

Discussion in 'Programming' started by Mr Errorz, May 15, 2019.

  1. Mr Errorz

    Mr Errorz Member

    Joined:
    Jun 21, 2016
    Posts:
    211
    First time trying to use tiles in GM2.
    I have this tile set, the tiles' size is at 273x273 [pretty large tiles, I know],
    when I create and select a tile layer in the room editor,
    it auto creates a grid equal to the size of my tiles, cool.
    Thing is, I don't want to place them tiles starting at 0,0, also, don't want to start at 0,273.
    Is there a way to place tiles outside the grid, or alternatively, a way to move or offset the grid so it won't start at 0,0?
     
  2. samspade

    samspade Member

    Joined:
    Feb 26, 2017
    Posts:
    1,931
    The IDE has an x and y offset - see this for more detail: https://docs2.yoyogames.com/source/_build/2_interface/1_editors/rooms.html#room_layers.

    The functions tilemap_x and tilemap_y appear to be the code version of the same though I've never used them.
     
    Mr Errorz likes this.
  3. Mr Errorz

    Mr Errorz Member

    Joined:
    Jun 21, 2016
    Posts:
    211

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