1. Hey! Guest! The 35th GMC Jam will take place between November 28th, 12:00 UTC - December 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice

GMS 2 Output Tilemap/Tile Layer Name String In Game

Discussion in 'Programming' started by 2d_warrior, Jun 1, 2019.

  1. 2d_warrior

    2d_warrior Member

    Joined:
    Jul 14, 2016
    Posts:
    201
    How do you retrieve the name string you give tilemaps/tile layers in the room editor, and display it on the screen in game. I know we can reference them as strings and GMS 2 knows what we mean, but how do we get the program to output that name string without knowing what the tilemap/tile layer name string is already?

    Edit:
    Ok. This wasn't so hard. layer_get_name(layer_id) works. I was expecting a command under tilemap.
     
    Last edited: Jun 1, 2019

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