Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - fornit

Pages: [1]
1
Support / Re: Parameters for instances of prefabs in tilemaps?
« on: August 14, 2015, 01:57:13 pm »
I am afraid you have to eloborate.
the longer I think about your post he more ambiguous it gets  :o

My idea was to essentially use the tileID as the primary information storage. So i set up a tile for every single piece of information (connections between objects for example but also IDs for texts on signs, books etc.). The color of the tiles is just for the user to easily identify connection between tiles.

Your posts reads as if the color is carrying the information. Do you use a color channel to transport information and the links are dependent on the color instead of the tileID?

edit: I'd like to keep my solution usable both in the 2d toolkit editor and the Tiled map editor unless an incompatible solution is vastly superior.

Oh btw, I am writing playmaker actions for the relevant functions. There aren't any official playmaker actions for the tileset functions, right? Are those planned for future toolkit releases? If so you can have mine when i am done and you just polish them for the official release. Or i can just post them in the forum. Or not at all. Whatever you prefer  :)

2
Support / Parameters for instances of prefabs in tilemaps?
« on: August 11, 2015, 11:20:13 am »
Is it possible to pass some kind of parameter on to prefabs or attach information to instances of tiles?

I want to use tiles for trigger plates, levers etc. to open doors or make walls disappear (door and wall prefabs, not part of the static level) or to trigger traps.
To do that, i would need to connect the trigger to the object it is supposed to activate. The best solution i can think of right now is use individual tiles for each trigger/object pair, but that is really ugly and can get out of hand quickly with bigger, more complex levels.
As far as i can see the tile info string and ID is per tile type, not per individual tile. Is there any way to pass info to the trigger prefab through the tilemap?

edit:
could i use an extra layer with transparent tiles? So i can "mark" the trigger and triggered object with the same "parameter tile". At least that way i only have one extra tile per trigger/object pair. Also, i could make them semi-transparent in different colors so that its visible in the scene view which trigger belongs to which object.

Pages: [1]