Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Socrates |
I’d like to add an existing tileset to a tilemap in code. How would I go about doing this? I’ve tried preload() but I don’t see any way to create an instance of the tileset so I can’t refer to it later. This is my code right now, which doesn’t seem to do anything.
tilemap.tile_set = preload("res://scenes/tilesets/tileset_001.tres")
Oh, thank you, it’s working now. My error was elsewhere (didn’t have the underscore in front of my _ready() function )
Socrates | 2018-06-11 17:38