Quantcast
Channel: Latest Questions by alexkaskasoli
Viewing all articles
Browse latest Browse all 56

Best way to make a tilemap with the 2D features

$
0
0
I'm wondering what is the best way to make a tilemap with the 2D features. (Tilemap for a platformer like an old mario, not top-down like an old rpg, if that changes anything). What I've thought of so far: 1) There doesn't seem to be a way to procedurally generate a sprite the same way you can generate a mesh. This would mean that if we're using sprites we would be using one sprite for each tile. That seems to be inefficient. 2) So since it would be inefficient to display too many sprites, we could generate a flat "3D" mesh that is tiled the way we want it. 3) For collision, instead of using a mesh collider, use a PolygonCollider2D and set the "points" to the vertices of the mesh. Am I thinking correctly? Or am I wrong in my assumption that displaying hundreds of sprites for a tilemap is too inefficient? How would you guys go about making a tilemap for a platformer with the 2D features?

Viewing all articles
Browse latest Browse all 56

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>