Change autotile library with code

Discussion in 'Programming' started by chorrus, Oct 9, 2019.

  1. chorrus

    chorrus Member

    Joined:
    Jun 21, 2016
    Posts:
    110
    Hi!

    I'm wondering if there's a way of changing the Auto Tile Library with code.

    Thanks!
     
  2. Yal

    Yal GMC Memer GMC Elder

    Joined:
    Jun 20, 2016
    Posts:
    3,742
    What library are you using currently? Are you referring to GM's built-in automatic tiling that changes tiles based on surrounding tiles, or some script / DLL that fills in empty spaces in the room with tiles?
     
    chorrus likes this.
  3. chorrus

    chorrus Member

    Joined:
    Jun 21, 2016
    Posts:
    110
    Yes, I've used some other methods for autotiling before but I was curious if there's a way to change the built in autotiling library with code, would be pretty useful but somewhy I am guessing it is not possible.
     
  4. Catan

    Catan Member

    Joined:
    Jun 20, 2016
    Posts:
    740
    What would you like to change exactly? I have a free extension on the marketplace to programmatically work with 48-tile based tilesets, you may take a look and see if you can change it to your needs.
     
    chorrus likes this.
  5. chorrus

    chorrus Member

    Joined:
    Jun 21, 2016
    Posts:
    110
    Your extension is pretty cool! It could definitely solve my problem. I was just curious if yoyo had a built-in functionality for autotiling with code(as they added autotiling in the level editor, adding a function to autotile and manage autotiling libraries in game would have been pretty useful).
     
  6. GMWolf

    GMWolf aka fel666

    Joined:
    Jun 21, 2016
    Posts:
    3,447
    For in game, you could just write the code you need.
    You can already modify tilemaps in code, that's all you need right?
     
    chorrus likes this.
  7. chorrus

    chorrus Member

    Joined:
    Jun 21, 2016
    Posts:
    110
    Yeah, yeah, I know it is possible, I've done it before on GMS:1.4, this was just to make sure there wasn't a new way On GMS:2 as autotiling is new.

    However, thanks all for your answers :)
     

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