Hello Guest

Author Topic: Tile Map: Per tile parameters?  (Read 3172 times)

GarthSmith

  • Newbie
  • *
  • Posts: 6
  • Games. Math. Code.
    • View Profile
    • Garth Smith's Website
Tile Map: Per tile parameters?
« 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!


« Last Edit: August 22, 2013, 01:07:32 am by GarthSmith »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Tile Map: Per tile parameters?
« Reply #1 on: August 22, 2013, 10:00:00 am »
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 :)