2D Toolkit Forum
2D Toolkit => Support => Topic started by: GarthSmith on August 22, 2013, 12:09:59 am
-
Hello!
I'm continuing to dive into the great tile map system in 2D Toolkit. Is there a way for the tile map to handle requirement #2? Using 2D Toolkit 2.1.
1) Level Designer can place Treasure Chest prefabs in a tile map. (I already know 2D Toolkit supports placing of prefabs!)
2) Level Designer can assign a string to each Treasure Chest prefab describing what item can be looted from it. Eg: Treasure Chest #1 gets string "sword". Treasure Chest #2 gets string "heart".
If this is not possible, then I can set up a system for the level designer to place interactive objects separate from the 2D Toolkit Tile Map. I just don't want to duplicate any work! I apologize if this has been asked a million times. Thanks again for 2D Toolkit!
-
As of 2D Toolkit 2.1 -
Once the instances are placed, you can select them and change properties on them. Basically, you can put a script on the treasure chest prefab that has a tag on it to tell it what it spawns :)