0
\$\begingroup\$

This may be a may be a very basic question but I have a 32x32 tile of grass for a 2D platformer I'm making. Is there an easy way to duplicate the tiles and lay them out? or will I have to copy and paste the tile a 100 times and adjust each one individually just to make a level?

\$\endgroup\$
  • \$\begingroup\$ Of course, you could copy it ten times, then select those ten and make nine copies, giving you 100. But most of us write something that will automatically create tiles based on some map data. See Unity procedural TileMap generation without creating gameobject per tile \$\endgroup\$ – jzx Aug 23 '15 at 6:42
  • \$\begingroup\$ Thats still a pain in the ass :D. Thanks for the link. \$\endgroup\$ – Zero Cipher Aug 23 '15 at 8:52
1
\$\begingroup\$

Hey I have answered a similar question , where you can populate different tiles as per need, using a 2d matrix to hold the information. Its very basic but you can build on top of it , to suit your needs :)

Link:- Generate static 2D Tilemap from array

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.