- Home /
Is it possible to create a GameObject from a set of tiles? (2D)
Hey there!
First off, this question pertains to a 2D top-down RPG game. I was wondering if it's possible to create an object (in this case, a house) from a set of tiles in Unity. I currently have an unorganized tile set that I would like to use to make different prefabs of house structures. There are two reasons I would like to have this as a GameObject. First, I would like to adjust the pivot point of the object so that I may use my "2D depth" script on it (i.e. when the player walks behind the house, it renders in front of him, and when he walks in front, he renders in front of it). Second, I would like to create preset trigger colliders for the doors so that the player can walk into the house (by triggering a scene change).
Thanks for any assistance you can offer!
Your answer
Follow this Question
Related Questions
Best way to make a big 2D map as smooth as possible? 1 Answer
Tilemap Collider 2D only works on upper and lower part of tile 0 Answers
Checking the probability of an attack in certain tiles 0 Answers
Need help finding a library/solution for efficient 2D tilemap rendering, collisions and interaction. 1 Answer
Collision/scripting for tiles 0 Answers