Skip to main content
Share Your Experience: Take the 2024 Developer Survey
9 votes

Is there a name for this technique to put the tiles on the corner of a level?

It's a palette. Same thing you see some artists doing with colors. They draw a group of a couple of the main colors or even a gradient going between them for easy access. It's much easier to use a ...
Bálint's user avatar
  • 14.9k
8 votes
Accepted

Is there a name for this technique to put the tiles on the corner of a level?

I don't know if there is a name, but this seems to be something you'd do to conserve memory. First, a basic tile is very low resolution - just a few pixels across. But when rendered, they are ...
Tim Holt's user avatar
  • 10.3k
6 votes
Accepted

Any way to combine instantiated sprite renderers into one texture so I can apply into a plane at runtime?

Here's one way to handle it: Make a texture that records which tile to draw at each cell of the grid, 1 pixel = 1 tile (so if you make a 4096 square texture, you can have over 16 million tiles in ...
DMGregory's user avatar
  • 135k
5 votes
Accepted

Is there an advantage to creating a tileset instead of multiple content items?

Nowadays the most important reason to use a tilemap instead of separate pngs is just for organisation. Do you want a stage to have a different theme? Then you simply create a new tilemap, that follows ...
Tom Tsagkatos's user avatar
4 votes
Accepted

Is there a way to set custom data per cell in Godot 4?

I solved this problem by extending the TileMap class thus: ...
amkingTRP's user avatar
  • 198
3 votes

Is there an advantage to creating a tileset instead of multiple content items?

Here's a little experiment you can do yourself to see why using a texture atlas (or tileset) is a good idea. The goal is to draw a checker pattern using a ...
craftworkgames's user avatar
3 votes
Accepted

How would I bitmask these tiles?

The tileset shown isn't well suited to autotile. Some parts work ok, others somewhat, and some not at all. The nine house tiles are the best suited to autotile, so we'll start with those. As mentioned ...
Pikalek's user avatar
  • 12.4k
2 votes

Take an image and cut it up into a tile map

Take a look at Tiled. It's a tool for creating 2D tile maps including hex-based maps like the example in your post. Phaser allows you to load tile map data generated by this tool. Once you've created ...
JRR's user avatar
  • 21
2 votes
Accepted

How can I create a slope/hillsde tileset?

Sloped terrain is hard to do in a convincing way in an orthogonal 2d tilemap. But here is an example from the 1993 SNES game Illusion of Gaia by Enix which does a quite decent attempt: This ramp uses ...
Philipp's user avatar
  • 120k
2 votes
Accepted

How to create walls and rooms with Pixi

From my understanding, PIXI doesn't recognize the blue walls. Your blue walls are really just one big rectangle (a sprite), so you can detect collisions between your characters and the map itself, but ...
Aaron Cicali's user avatar
2 votes
Accepted

How do you use these kind of rpg ground tileset ?

This tileset is famous because it was used in RPG maker VX. It seemingly consists of 6 tiles (2 by 3) and it even outputs tiles in that size, but it actually handles the tileset as if it was 4 by 6: ...
Bálint's user avatar
  • 14.9k
2 votes

If I have three different kinds of blob tiles, how many tiles do I need?

If I'm reading Godot's Terrain TileSets documentation right, you can potentially select a different tile for any permutation of terrain types painted in this square and the 8 squares around it. So if ...
DMGregory's user avatar
  • 135k
1 vote

Is it possible to set properties on a scene in a TileMap/TileSet?

According to the Github issue status, it is not currently possible. The issue might be solved in the future though, most likely by adding a scene painter tool, which would allow painting scenes just ...
Mortasen's user avatar
1 vote

If I have three different kinds of blob tiles, how many tiles do I need?

You need 698 tiles for the full blob pattern with three terrains. It's less than \$3^9\$ as not all combinations make sense. You can see the full list with this tool, selecting blob, and put terrains ...
BorisTheBrave's user avatar
1 vote
Accepted

How to fix texture atlas border bleeding?

The texture size usually does not match the screen area, so it needs to be enlarger or reduced. That means that the border of your tiles are blended with the transparent border between tiles. And it ...
gotanod's user avatar
  • 341
1 vote
Accepted

XNA's SpriteBatch resizing is not sharp as i use it

Thanks to @DMGregory, i've Added the parametter samplerState on SpriteBatch.Begin that fixed everything ...
Louis BERTRAND's user avatar
1 vote

How do you use these kind of rpg ground tileset ?

These are "Auto Tiles" for the RPGMaker game engine. While the map editor uses 32x32 tiles as a basic logic unit, the engine actually splits the tiles into 16x16 tiles. The map editor then ...
Philipp's user avatar
  • 120k
1 vote

Is there an advantage to creating a tileset instead of multiple content items?

It comes down to performance. Tilesets are good for the engine, since it then has to only store one single path to one picture. And that picture is easily made into power of two to better be ...
Yiasmat's user avatar
  • 11
1 vote

Character collision detection on 2D array tileset based map

The simplest way possible to perform a collision detection is checking the next position an object should move to: if there is a free place, move it, if there is a wall, don't move it, etc. Simple ...
Grigory Alfyorov's user avatar
1 vote

Why my canvas isn't showing anything after I put code in the loop for tile map?

So I solved the problem by removing one of the image.onload functions. The problem was that I had them both in my constructor functions. And the one inside Loader ...
Limpuls's user avatar
  • 189
1 vote
Accepted

Tiled - isometric map - how to find out tile width/height

The downloaded file contains a big spritesheet with many sprites in it. What is the best way to find out what settings I need to have in Tiled to work with these? The spritesheet included in that ...
Thorbjørn Lindeijer's user avatar
1 vote

Use tilesets or a complete image?

Your question is a bit unclear, but I assume you are asking: Why render the world of a 2D game using a single texture holding an indexable tileset instead of having the world pre-rendered from ...
Pharap's user avatar
  • 1,627
1 vote

Use tilesets or a complete image?

It's simply more convenient. If you store the tiles with ids, then you can easily convert those to coordinates on the texture, so you don't need to store the textures in an array or use switches. You ...
Bálint's user avatar
  • 14.9k
1 vote

Top down 2D game: hole tiles

Think of the hole tiles as "teleporters" which teleport the player-character to a different map (the one representing the layer below it). You will likely already have an implementation for these to ...
Philipp's user avatar
  • 120k
1 vote

Top down 2D game: hole tiles

I don't know what tool you are working with but as if you work in unity like me, you can make a trigger for those holes and certainly player has a collider. so in collision stay of hole or player just ...
virtouso's user avatar
  • 2,628

Only top scored, non community-wiki answers of a minimum length are eligible