Should i use a tilemap or sprites for level blocks in a 2d platformer?
#1
I’m trying to decide between using a tilemap or individual sprites for my 2D platformer’s level blocks, and I keep going back and forth. The tilemap is great for quickly painting out the ground and walls, but when I need to place unique interactive objects or detailed background pieces, it feels like I’m fighting the system.
Reply
#2
Tilemap is great for the ground and walls, quick to paint and easy to edit. The trouble comes when you need something unique to interact with, or a piece that needs to animate or be in front of the player differently. I keep the tilemap for the static blocks and put interactive stuff as separate sprites or small scenes with their own collision and logic. Still feels faster for layout, and I can swap a few tiles without touching a dozen objects.
Reply
#3
I tried doing everything as separate sprites at first. It looked nice, but editing a whole level when the ground changes was a nightmare. I shifted to a hybrid: base level on a tilemap, then drop in individual sprite objects for switches, pickups, and weird background bits. It slowed me down a bit at first, but editing any one piece became a lot more predictable and I could reuse assets more easily.
Reply
#4
Sometimes I wonder if the problem isn’t the tool but how I’m organizing things. I’ll spend ages tweaking collision boxes and anchors, then realize a tiny tile offset caused the issue. Might be overthinking it, but the hybrid approach feels the most sane to me right now.
Reply
#5
Maybe the real issue isn’t tilemaps vs sprites at all. Am I chasing the right problem here? Do the interactive pieces keep tripping up the base grid when I drag blocks around? If that’s the thing, I might just keep them in a separate layer and stop trying to bake everything into a single system.
Reply


[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Forum Jump: