2022 Developer Survey is open! Take survey.

Questions tagged [tilemap]

Tile map is a technique of re-using small graphic pieces, tiles, over and over again to shape the game field.

Filter by
Sorted by
Tagged with
0 votes
0 answers
36 views

How to make a Class of Clans style tilemap projection in Unity?

I saw some posts about the projection used by Clash of Clans, but it doens't make sense for me. I am trying make a game like Clash of Clans (in Unity with an isometric tilemap). I tried use both ...
user avatar
0 votes
0 answers
22 views

How to determine for every wall in a 2D tilemap where's the "inside"?

I'm working on an ARPG, and I'd like to implement a "fading walls" system similar to Diablo II's. Let's say I have this tilemap, where Black tiles are walls, Brown tiles are floors, White ...
user avatar
  • 626
1 vote
1 answer
58 views

Problem with placing isometric tiles above and below each other

In unity when using the in built tale palette to place tiles into the scene, I have come across a small problem. Im using an isometric tile-map and whenever i go to place a block, I end up placing a ...
user avatar
  • 21
0 votes
0 answers
19 views

Unity question about tilemap

So if I planning to make big location like for example Stardew Valley with tile size 32x32, should I make all map and just have it, or should I load tiles as player moves to them. I actually new to ...
user avatar
  • 3
0 votes
0 answers
26 views

My tilemap is semi-transparent

I am new to Unity, and I am following the following tutorial: https://code2d.wordpress.com/2020/07/21/tilemaps/ However, my tilemap is semi-transparent. Any way to remove the transparency somehow? See ...
user avatar
0 votes
0 answers
18 views

Sorting tile unity problem [duplicate]

I have a top down Tiled map, and I would like to extract every single tile from the map and set z order layer according to the Y position they have, I have already found the way to have every single ...
user avatar
0 votes
0 answers
176 views

Making sure the player and the camera are in the borders

What I need is a way to automatically create an invisible border around the current tilemap (tile map uses simple rectangular tiles) The player character uses ...
user avatar
  • 599
0 votes
1 answer
38 views

Setting a border around a unity 2d tile map

I've a procedurally generated hex tilemap, which is larger than the bounds of the screen (when not zoomed out). What I want to do is create a border around the tilemap. The tilemap is a child of a ...
user avatar
0 votes
1 answer
44 views

Color glitch with tilemap.SetColor() in Unity

I've been experimenting with Tilemap to display tiles (with random colors) in script with SetColor() and other methods: ...
user avatar
  • 117
0 votes
1 answer
85 views

Trying to get sprite from isometric "z as y" tilemap

I'm using code like the following with a tilemap and tilemap collider 2d: var ray = Physics2D.RaycastAll(worldCoordinate, Vector2.zero); Unfortunately, when I ...
user avatar
0 votes
1 answer
53 views

How can I determine which 2d entity was selected from a overlapping pile

I'm using C++ and SDL2 to learn about coding by creating a clone of a 2d tile-based game I enjoy. To setup my problem; There can be multiple items dropped on a tile by the player or other entities ...
user avatar
0 votes
1 answer
33 views

How can I implement the player being able to place tiles on a 1d array grid?

Tell me if I need to provide more info. My tile-based sandbox game needs to allow the Player to place tiles He has collected. But the problem is, I do not know how I can place the tile based on the ...
user avatar
1 vote
0 answers
55 views

2D tilebased collision system

Hi i want to implement a collision system (something comparable to super mario) I would like it to have objects which can have any size (the hitbox of it) And it should be reasonably efficient (so ...
user avatar
  • 11
1 vote
1 answer
45 views

My sprite is hovering slightly above my tilemap in Unity 2D

I have a simple object with a Rigidbody 2D and a Box Collider 2d, that's supposed to fall and land on a tilemap with a static <...
user avatar
2 votes
1 answer
84 views

How to properly handle hundreds of layers of tiles

GOAL I am making a top-down tile-based sandbox game, and it will have 400 layers of destroyable terrain, It will not use chunks, it will store the map in memory like Terraria, but only render the ...
user avatar
1 vote
1 answer
36 views

Having a Logic Error in my tile rendering code

I am a novice programmer. In my program, I can render a 5000 x 500 map, but it renders incorrectly, instead of this : ,,~,,,,~,,,,,~,~,,,,,~~,,,~,,,~,,,~,,~~~,~~~,,,~,,,,~,~,,,~~,~,,~,~,~~,~,,,,,~,,~~,...
user avatar
0 votes
0 answers
14 views

Unity Isometric Tilemap Sorted Wrong

After changing the Graphics>Scriptable Render Pipeline Settings to the Universal Render Pipeline, my isometric tilemap looks weird. This project is 2D. My tilemap settings: If I want to use the ...
user avatar
  • 137
0 votes
2 answers
49 views

How to check multiple rings of tiles around a center tile on a 2D grid

In my game project I create the terrain programmatically by creating tiles on a 2D grid as the player moves around the game map. I have it working where I select the current tile and check all 8 ...
user avatar
  • 145
0 votes
1 answer
37 views

Tilemap is rendering all tiles as black squares

I'm trying to render a 2D tile map. I've placed a Tilemap object in the scene from the create 2D object context menu, set a reference to it to one of my script ...
user avatar
0 votes
0 answers
74 views

Generating a tilemap and A* grid in unity but they aren't updating correctly

So question is: Why is the unity editor behaving this way (not updating the tilemaps until I go though the scene and click on them) and why is A* not generating the proper grid when Scan() is called ...
user avatar
  • 153
0 votes
0 answers
44 views

I can't add the change I made while the game is running to the list?

I realized that my problem has nothing to do with tilemap or something so I need to update my question.CalculateAgain() In the script below, I run the ...
user avatar
  • 13
0 votes
1 answer
113 views

Interpolate colors between vertex in a plane

So I have this plane generated with two different Perlin noises. It has mainly 3 regions, divided by color. I want to smooth out the lines, to create a "gradient" so there are no abrupt ...
user avatar
  • 5
0 votes
1 answer
138 views

High CPU usage with Godot tilemap

I am using Godot as my game engine and I am making a basic 2D game, I have a small map with 1 Player and 5 Enemies walking around in it. The game includes some basic code for walking and shooting at ...
user avatar
  • 45
0 votes
1 answer
190 views

How to change size of a SINGLE tile on a tilemap at runtime?

I'm having trouble figuring out how to change the scale (size) of a single sprite (tile) on a Unity Tilemap. In the game, I place trees as tiles on a tilemap, and when they grow over time, I want to ...
user avatar
0 votes
1 answer
166 views

Assign biomes to areas with a Voronoi noise function

I've created this terrain based on a Voronoi noise function: This is how it looks without the elevation: I want to assign biomes to the polygons following certain rules and use the slope on the ...
user avatar
  • 5
1 vote
2 answers
144 views

Voxel terrain vs AABB collision detection

I am trying to implement collision detection in a voxel game. Currently I check the side of the collision by finding the closest side and checking whether there isn't a solid block next to that side. ...
user avatar
0 votes
0 answers
43 views

How to define tile size for 2d tilemap in Unity

I am absolutely new to Unity. Now I am developing 2D RPG gameplay in 3D project. So my goal is to let player move only on a fixed road. There is an image of a fixed map, so I am going to use this as a ...
user avatar
0 votes
2 answers
63 views

Make materials higher quality as the user gets closer

Scenario I have a sphere with an low-quality earth texture on it. I also have a much higher quality earth texture (Gigabytes in size) that I can use but it's too performance intensive to use on most ...
user avatar
  • 191
2 votes
1 answer
139 views

Grid: Spreading temperature

I'm trying to spread temperature values evenly across the grid (Room) but somehow it has a bias to the right side of the map. My basic math skills are non existent so i could use some help with the ...
user avatar
0 votes
1 answer
53 views

How to track when the player collides with another tile?

I'm using Unity to create a 2D platformer game. I ran into an issue I was hoping someone could help me with. I'm using OnCollisionEnter2D() to detect when the player gameobject touches the ground, ...
user avatar
0 votes
0 answers
27 views

How to group a list of Vector2 points into Rects for more efficient storage?

I'm working on a fog-of-war system for a tile-based strategy game (e.g. Civilization), and I need to store which parts of the map have been revealed so the game can be saved/loaded properly. The ...
user avatar
  • 174
0 votes
1 answer
72 views

How To Separate Tilemaps (Unity)

I am trying to separate unconnected contiguous areas in one tilemap into their own separate tilemaps.
user avatar
0 votes
1 answer
159 views

How to create and assign tiles via script?

I am trying to make some kind of tileset texture replacer using an editor window. First, I try to save all tile and texture names in let say "scenename.ctss" (ctss stand for "custom ...
user avatar
0 votes
0 answers
74 views

Drawing Sort Order in Unity Tilemap

I don't know if this is something I'm doing wrong or if it's a bug with the Tilemap system in Unity. Right now I am spawning a 100x100 grid of cells with a texture on z-axis 0. ...
user avatar
3 votes
1 answer
641 views

How do I bitmask these tiles?

Using Godot. I can't figure out how to bitmask these tiles in order to autotile them. I've examined the templates shown in the Godot Docs Tilemaps tutorial, but none seem appropriate. My own attempts ...
user avatar
2 votes
0 answers
60 views

2D game make precise collisions

I am currently creating a personal 2D tile map game in Java. This is the first time I have attempted to make any sort of game, so I don't have a lot of techniques known by experienced developers. ...
user avatar
0 votes
1 answer
47 views

Are there tilemaps without images?

I would like to use Tiled or a different editor to create a simple world (top-down). But I don't want to use any images. I just need colors to distinguish the different types of terrain. What would be ...
user avatar
0 votes
0 answers
27 views

Player catches on tile map collision, even with common fixes

I am making a simple 2D platformer in Unity. I have a tilemap and I started noticing that the player catches on the tiles during gameplay. I move the player using ...
user avatar
0 votes
1 answer
104 views

Turn-based grid movement - each click of the clock you want to move the player

I am working one the movement for a tactical turn-based pygame. I'm stumped as to how to get a selected object to move one tile at a time up to it's max movement to the mouse's pos. Right now this is ...
user avatar
0 votes
1 answer
51 views

How to get area of grids?

Firstly,I don't know if my question title is true but I couldn't find better title, sorry If I titled wrong. I'm trying to grid base game. The player is moving grid to grid and never stop between ...
user avatar
0 votes
0 answers
84 views

How to mask 2D tile sprites

I want to use masking technique to be able to reuse tiles. Basically I have the base texture and an array of masking textures for different corners and positions and want to combine the two to get a ...
user avatar
  • 31
0 votes
0 answers
38 views

Pytmx loads no tiles or textures, it seems

So, I've been trying to load a tmx file through pytmx But when it loads the file, it only loads a black image with the same resolution as the tmx file. ...
user avatar
  • 1
5 votes
1 answer
635 views

How to make different Rule Tiles interact with each other?

I am using Unity's RuleTiles to automatically change sprites of adjacent similar blocks. For example, when a Dirt tile notices there are two ...
user avatar
0 votes
0 answers
77 views

How to check what tile the player is standing on?

My goal here is to write a check of some sort in my playerMovement script so that I can check the name of the tile the that the bottom-middle of the sprite is located in on the tile map, from there I ...
user avatar
0 votes
0 answers
19 views

Sprite sorting is working fine but tilemap sorting is working the opposite way I want it to [duplicate]

I provided some screenshots to display what I'm talking about. The blue tile is a sprite, and the bushes are made from tilemap, each being 4 16x16 tiles. My transparency sort axis is set to 0,1,0. I'...
user avatar
1 vote
0 answers
21 views

Libgdx tiles get overlapped on render

I'm trying to create a Tilemap with 64x64 textures which follows this configuration. ...
user avatar
0 votes
0 answers
23 views

how would i make a sprite go in front and behind a 2d wall? [duplicate]

I've tried a few solutions but none seem to work. first, I tried adding half of that same sprite onto the original and then making the layer higher, which would work, except my original sprite can ...
user avatar
  • 15
0 votes
0 answers
91 views

Calculating size and position of Tilemap for camera bounds

I'm new to Unity and I'm following a series of tutorials covering off building a 2D Zelda-like game. I'm at a stage where I have two Tilemaps side by side and I'm working on a transition between them, ...
user avatar
  • 1
0 votes
0 answers
125 views

Testing my game in the engine works fine, I export to HTML5 and try but all the tiles in tilemap have disappeared

Here is a link to the live game: https://44351-w21.github.io/one-screen-platformer-francescainfranca/ As the title says all the platforms in the tilemap do not appear when you run the game on the ...
user avatar
  • 1
0 votes
0 answers
140 views

Divide a tile map into multiple images

So let's say I have a tilemap 5 x 5, which equals 25 tiles. How can I divide my tilemap into 25 different images? I'm using tiled, but I don't know if it is possible to do it on there or if I need to ...
user avatar
  • 1

1
2 3 4 5
14