Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

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
1 vote
1 answer
47 views

How do I place the local center of my tilemap at 0,0?

If I have a tilemap that is 4x8, positioned at 0,0 in the editor as follows: What code would I use such that it ends up "centered" when my game runs? I'm hoping for an end result that would ...
Alexander Trauzzi's user avatar
1 vote
1 answer
55 views

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

If I have the following: sample of code showing exported properties: [Export] public TileSet TileSet { get; set; } [Export] public string TileName { get; set; } ...
Alexander Trauzzi's user avatar
0 votes
0 answers
13 views

Can I extract/bake the collisions generated by a tilemap collider?

Given a tilemap, with a tilemap collider, is it possible to extract/bake the current collision(s) onto a separate gameobject independent from the tilemap/tilemap collider? My 2D game streams a large ...
Saturn's user avatar
  • 1,771
0 votes
1 answer
75 views

How do I interpolate light intensity for tilemap's lightmap?

I implemented lightmap creation for a tilemap, but I cannot figure out how do I interpolate light intensity values. For now, my lighted tiles create an obvious grid-like structure. It was pretty easy ...
Steyrix's user avatar
  • 225
0 votes
0 answers
68 views

Huge gaps between my tile textures in Godot

The texture itself doesn't have any gaps in it. I don't know where these gaps are coming from. Someone suggested that I check if the sprite sheet's cell size and padding are correct. When I checked I ...
Hassan Shehzad's user avatar
0 votes
0 answers
45 views

How do I create Mining System like in DomeKeeper / Wall World?

TL;DR - I want to create a mining system like in Dome Keeper / Wall World. I'll start with the fact that I'm new to gamedev, and i did a wholeday of research before writing this post. I want to ...
Slava Bugz's user avatar
1 vote
1 answer
82 views

A-star algorithm after 2D tilemap 90-degree rotation

I am learing Unity and for now trying to implement a simply pathfinding alogorithm in a simply 2D isometric diamond-shaped tilemap. Recently I learned a way how to rotate tilemap and I already have a ...
Valeriy's user avatar
  • 13
0 votes
2 answers
93 views

Correct way to control tiles transparency on tile map?

Some 2D top-down games use tile maps and use transparent tiles for representing static objects. For example Stoneshard. When the character walks behind a tree, the tree becomes partially transparent. (...
Steyrix's user avatar
  • 225
0 votes
0 answers
54 views

How to display objects behind tall structures in 2D tilemaps

I'm interested in what happens when you have structures/buildings on a 2D tilemap that are tall enough to block the view of the player. AFAIK, there's a few approaches: Do nothing to display the ...
bli00's user avatar
  • 101
0 votes
0 answers
65 views

How to generate visually stunning tilemaps?

I previously asked this question but I don't think it was well phrased, so I want to rephrase the question. I want to generate tilemaps that resembles the pixel art world maps from "Shovel ...
bli00's user avatar
  • 101
1 vote
0 answers
134 views

Godot 4 - Isometric Snap Grid

While there is rotation in the snap grid settings it does not seem to be rotating the displayed grid. I can use a Isometric tilemap, but without a grid displayed at all times, I cannot perfect ...
Case's user avatar
  • 113
0 votes
0 answers
53 views

How to draw a tile placement grid in a 2d isometric place/world?

I'm working on an isometric 2d tile based game in ruby using SLD 2. The tiles are 40px wide and 20px tall. I'm trying to figure out how to draw the grid (where each cell of the grid is a potential ...
Scriptonaut's user avatar
0 votes
0 answers
74 views

Can WFC generate aesthetically pleasing maps?

Is wave function collapse actually capable of generating aesthetically pleasing tilemaps? Let's very roughly define "aesthetically pleasing" using an example from the world map of "...
bli00's user avatar
  • 101
0 votes
1 answer
124 views

Simulated light for a 2D tile-map with just SDL2?

I'm working on a 2D tile-map RPG with C++17 and SDL2 + SDL_Image. There are daily cycles, weekly cycles and seasons. Even a kind of weather engine provides atmosphere. The moods and times of day are ...
El_Codepone's user avatar
0 votes
1 answer
84 views

Optimal Approach for Transmitting and Rendering Large Pixel Art Game Maps in Unity

I'm working on a pixel art game in Unity, and my backend (Which is actually written on Golang) has generated a massive dataset of tiles for a 1000 by 1000 world (it could be even more). I'm wondering ...
Resorter's user avatar
1 vote
0 answers
39 views

How to fix collision for objects beyond their green lines?

As you can see in the image those are collision lines but its kinda of disingenuous as there are I would say invisible collision blocks on the X's, I tried messing around with the sorting layers and ...
Thecodingnoob's user avatar
0 votes
1 answer
144 views

How can I make colliders-only visible in Godot?

Specifically, I'm looking for any way to see a collision-only item from a Mesh Library in a GridMap. (The tag says "tile map", which it technically isn't; but there's no option for a grid ...
Michael Macha's user avatar
0 votes
1 answer
198 views

Procedural Path Generation

I've been trying to make an algorithm to procedurally generate a path from a tile map attached below. I'm just looking for a method to go about doing this. EDIT: I want to make a path for a tile map ...
Daniel Kharis's user avatar
0 votes
1 answer
123 views

How to process tiles of different sizes?

I have next problem. Sprite sheet that I have has sprites of different sizes. I use 16 pixels per unit. On the screen you can see a choosen tile and that it's height is 14 pixels. I can't resize it ...
Taras Fityo's user avatar
0 votes
0 answers
44 views

How to draw new tile on existing tilemap

I created a simple prototype/script which has to draw a predefined tile on an existing tilemap (and highlight the hovered tile). But for some reason, even though it adds the tile to the correct place, ...
Suule's user avatar
  • 101
3 votes
0 answers
145 views

2D Tilemap Collision resolution in C#/MonoGame

A bit of context about my game: I'm nearly 2 years deep into development of my game called Cosmorists. It's programmed in C# using the .NET 7.0.11 framework, and MonoGame 3.8.1 game framework and it's ...
Stellar Roots's user avatar
0 votes
1 answer
40 views

Why is the grid's Z coords = -10

I'm using mouse input to move the player from where they are to where the mouse position is relative to the cell on a tilemap. However I found when I click on a point of the tilemap, the z coordinate ...
Maeson Williams's user avatar
0 votes
0 answers
36 views

Missing tiles when rendering an isometric Staggered tilemap in Unity

I'm trying to show tiles on an isometric staggered tilemap in Unity, but some tiles are missing. I think the problem might be with where I'm placing the tiles or some floating-point precision issues. ...
Nick785's user avatar
0 votes
0 answers
36 views

Character is stuck between grid cell gap [duplicate]

I started making a D&D-style turn based tactic game. I have a problem with my tilemap. I made a script to find the location on the tilemap for my character and for the tile I clicked with the ...
James's user avatar
  • 1
1 vote
0 answers
247 views

Selecting tiles with mouse on isometric map with height and slopes

I want to implement an isometric map with rectangular tiles similar to how it was in simcity 2000, where tiles could have different heights and tiles with different heights were connected by slopes. ...
SavedowW's user avatar
0 votes
0 answers
50 views

Only first line/column of level text file gets loaded into tile map

I'm trying to make a map using a text file, but it only does the first line / column and not the rest. I know the problem is in getTileImage. ...
Nobodyis_here's user avatar
3 votes
1 answer
2k views

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

My idea is to mark a cell as "occupied" when a character is in that cell doing something so no other character can be on that cell working. My first thought was to set a ...
Alex CB's user avatar
  • 376
1 vote
1 answer
872 views

How to disable a layer in a Tilemap's collision mask via code?

I have a tilemap in Godot 4.1 and I have defined a physics layer for a tileset, but I cannot figure out how to disable a layer in collision mask in code. I already found out that I should get tileset ...
Adonia Kazemzadeh's user avatar
0 votes
0 answers
146 views

Drag and Drop tile in TileMap

I am new to using TileMaps so I am not sure if this is possible. How can I add a Drag & Drop option for my TileMap? I have no problem identifying a click on a tile but don't know how to go about ...
theblitz's user avatar
  • 123
0 votes
1 answer
232 views

How do I smoothly connect isometric tiles at different height levels?

I am trying to figure out how to smoothly connect isometric tiles at levels. For example, below are tiles at different levels. I want to smoothly connect the tiles at the two levels based on the ...
lancen's user avatar
  • 33
0 votes
2 answers
458 views

How to set GameObject on tilemap through script

In the built in Tile Palette tilemap editor, you can choose a GameObject brush to set custom tile GameObjects. How would I be able to set a gameObject onto a tile through a script?. There is no ...
CodeWizard777's user avatar
2 votes
1 answer
2k views

How do I place objects so they snap to my TileMap in Godot?

When I'm placing objects on tiles in my TileMap, they snap to positions that aren't on my tile's grid. I drag my object to the middle of the grid square, but it keeps snapping to the corners. I'm ...
idbrii's user avatar
  • 808
0 votes
0 answers
380 views

Navigation in a TileMap with 2 types of tile in 1 cell in Godot4

I'm stuck with the navigation in a TileMap based scenario in Godot 4. My intention is to make the enemy (boats) to chase the player while avoiding procedurally ...
Alex CB's user avatar
  • 376
0 votes
2 answers
103 views

How to calculate shadow position below arcing projectile in Isometric 2d tilebased grid?

I have an Isometric 2D grid-based tilemap, and am firing a projectile (at Vector P1 in image below) from the player (at Vector A) to a location "above" a target location (at Vector B). This ...
user46346's user avatar
  • 101
1 vote
1 answer
75 views

Is there any standard format for engine agnostic 2D tilemaps?

Basically that. I tried searching for standard 2D tilemaps formats or encodings, but I haven't found anything significative. I know that big engines use their own formats (Godot Resources, for example)...
Miguel's user avatar
  • 158
0 votes
1 answer
419 views

Making a 2D Grid Map UI in Unity

I am trying to make a simple 2D square grid for a map UI. The game itself is also 2D and the player can only make discrete movements between the square, but the player view is first person (you see a ...
stackedAE's user avatar
  • 103
2 votes
1 answer
215 views

How do I make AI avoiding obstacles on tile map?

I implemented 2 NPCs chasing the character using Dijkstra algorithm for pathfinding. Tile map is represented by graph, where a node is basically the tile, and the adjacency list consist of adjacent ...
Steyrix's user avatar
  • 225
0 votes
2 answers
161 views

Drawing a box using rule tiles in unity

SO I have a tile sprite like so : I want to use this to draw boxes on a 2d map using rule tiles. But I can't seem to get how to set rules for it in unity. These are the rules I have : And this is ...
Snedden27's user avatar
  • 101
1 vote
2 answers
368 views

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

Blob tiles are autotiles that match edges and corners. I know that for two different kinds of tiles, I need 47 * 2 tiles. But I have three different kinds of tiles. I thought that I needed 47 * 3! ...
Emily's user avatar
  • 21
1 vote
0 answers
343 views

How to make a moving platform with Unity Tilemap?

I am trying to make a 2D level of a game and want to know how to move a specific tile left and right. All the level is designed on a single Tilemap. I want to move one platform left and right. How ...
Nomi's user avatar
  • 33
0 votes
0 answers
982 views

How to draw thin borders / walls on a Godot tile map?

I'm trying to make a map of a home consisting of rooms with thin walls for a simple top-view game. I'm struggling to implement thin walls with the tile set. Let me explain what I mean: if two cells ...
JohnJ's user avatar
  • 1
3 votes
1 answer
150 views

What was the rationale behind the updating of 'changed' tiles in John Carmack's Adapatie Tile Refresh?

I was recently reading up on Carmack's Adaptive Tile Refresh, of which was written extensively in this thread, to implement in a hobby gamedev project of mine: https://retrocomputing.stackexchange.com/...
Hash's user avatar
  • 83
1 vote
0 answers
120 views

What's the best way to store irregular areas of my map? (hierarchical pathfinding and grid segmentation)

This is for the development of a roguelike/management game. I'm trying to implement HPA (hierarchical pathfinding with A*), and I've found a few good resources (suggestions appreciated) in the forms ...
genfy's user avatar
  • 43
0 votes
0 answers
825 views

Possible to have Rule Tiles work with Rule Tiles in other Tilemaps in Unity?

I am using Rule Tiles to draw walls for my top down 2D Unity game. I have already been able to implement custom Rule Tiles that will work with each other (ie two different Rule Tile setups that still ...
greb's user avatar
  • 11
3 votes
1 answer
2k views

Tilemap missing collision options?

I've been having a lot of trouble getting tiles to have collision in the newest Godot 4 beta10. I thought there was supposed to be a physics tab that would give collision options like in previous ...
Tech Late's user avatar
0 votes
2 answers
248 views

How do I put 3 different tiles in the same place?

I'm trying to make a Color Rings game. When I try to set 3 tiles (rings) in the same cell of the board (same X/Y coord), it shows me only one, the last one in the script. For example, in this case: <...
kozavr's user avatar
  • 23
0 votes
1 answer
423 views

Can I use normal images to make tiles in Unity?

If I'm not wrong, those are steps to use tiles with Tilemap in Unity Upload sprites to Unity Create a palette. Upload sprites to the palette to create tiles. I need some static images to use with ...
kozavr's user avatar
  • 23
0 votes
1 answer
1k views

Draw a player in an isometric tilemap in the right order

I'm trying to create an isometric tilemap world in Godot 4 beta 4. The world is made of blocks on top of each other where for every Y level (thinking the world like if its in 3D coords) there is a ...
Crih.exe's user avatar
  • 111
1 vote
0 answers
150 views

How to structure/size isometric sprites

I'm taking a look at a isometric asset pack from Kenney, and all the images are 512x256..even images with just a small barrel in it. Seems like a lot of space is wasted? Is this good practice, to keep ...
Oli's user avatar
  • 115
0 votes
0 answers
429 views

How to render and interact with a seamless wraparound world map, in the style of e.g. Civ 5, in Godot 3?

I asked a similar question on the Godot subreddit but I want to ask here as well in hope of getting more detailed/different answers. I'm making a world map for a turn-based tile-based 3D strategy game ...
bluegreen1024's user avatar

1
2 3 4 5
15