Godot Version
4.2.2 Stable
Question
Hello everyone!
I have four questions, but before that here is the context. I am creating a roguelike similar to Isaac. I am currently working on room generation and I now want to, for a room of a particular size, create custom layouts and templates it could choose from. I am using the tilemap to create an individual room but it is saved a scene which because cumbersome fast.
-
Is it possible to save the particular tiles I have drawn as a resource? As said, I’m making dozens of layouts and templates but saving them as a resource would make the way I spawn 2d nodes and the dungeon much easier.
-
If the previous is possible, is it possible to change the visual of the layout by simply feeding a different tileset?
-
How could I place tiles that signal to the scene, “An enemy needs to spawn here” or loot. I can handle the spawning but having the tilemap broadcast this need and fetch that information when loaded from a resource is where I am a bit dubious.
-
In order to toggle doors open or closed and their collision as well, how do I fetch the particular information for a door when it has properties such as “locked” from a tilemap? Should I create a separate class that stores the properties and exact cell of the door in order to communicate visual changes explicitly?
Thanks for all the help!