Questions tagged [tiles]
Identically shaped objects (often squares or hexagons) representing spatial information.
633 questions
0
votes
0
answers
62
views
Aligning OpenStreetMap data with Cesium 3D tiles
I have my OpenStreetMap data exported using QGIS as a gltf file, and I'm trying to align it with Cesium 3d tiles for my high resolution model.
The problem is that both have different coordinate ...
1
vote
2
answers
137
views
Change the tile in the tile map at runtime
So I am making a game which has a farm. The farm is a tile map with each individual tile being a crop/mud.
I want to achieve the following
As the player interacts with a particular crop tile, I change ...
1
vote
0
answers
120
views
Creating a large number of GameObjects asynchronously
I am creating a 2D procedural terrain using many Tile GameObjects. To make this infinite (and more performant), I dynamically load and unload chunks based on the players position and a variable ...
5
votes
1
answer
372
views
What is Starbound's method for handling tiled textures called?
When digging through Starbound's assets, the assets for dirt had two rows. A top row that was 8x8 pixels and a bottom that was 12x12 (See image):
Now I know that they're not just simply being placed ...
0
votes
0
answers
103
views
Merging sprites to be used as a single tile
I am attempting to make a CompositeTile out of 4 sprites (one for each corner of the tile) that can be used as a single Tile ...
5
votes
5
answers
2k
views
Grid-based pathfinding for a lot of agents: how to implement "Tight-Following"?
Note: the main problem has nothing to do with the TYPE of pathfinding algorithm (A*, flow-field etc), allow me to explain:
I have a 2d grid and a lot of agents moving around, I want it so that ...
-1
votes
1
answer
148
views
Isometric Rendering Doesn't Align
I've been starting to experiment with 2D rendering, in particular isometric rendering.
So far I've been having issues getting my tiles to line up.
I am currently writing this in Rust using the Bevy ...
1
vote
0
answers
149
views
I would like to know more about the “three commonly used tile sets” mentioned in the video [duplicate]
Around 35 seconds into this video, three commonly used tilesets are mentioned: "15-piece, 47-piece, Reduced."
The video points out some issues with these tilesets, but it doesn't seem to ...
0
votes
0
answers
148
views
Changing tile texture based on neighbor tile types
I am creating a 2D game with Unity. I have a map, which is a Tilemap. Currently I have 3 types of tiles: water, sand, grass.
Goal: I need to make a tile which would automatically change its texture to ...
1
vote
0
answers
157
views
How can I create hexadecimal map files?
I create maps like this, where each tile's data is represented in hexadecimal format:
...
0
votes
2
answers
255
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. (...
1
vote
0
answers
140
views
Possible to draw isometric tiles with height and moving objects in one pass?
I am working on a isometric tile-based game where the tiles can sometimes have differing heights - representing elevation. I am trying to understand how to order the tiles for drawing when there are ...
0
votes
1
answer
517
views
How to apply sampler2Darray textures to different locations of a single mesh?
In openGL, I have a 3D terrain composed of a grid of 255x255 vertices. The vertex of the lower left corner is at coordinates (-127;-127) and the one of the upper right corner is at coordinates (127;...
0
votes
1
answer
447
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 ...
0
votes
2
answers
951
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 ...
0
votes
1
answer
796
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 ...
0
votes
1
answer
61
views
How do I spawn the tiles on the global z axis instead of local z?
I'm trying to spawn infinite tiles in a 3D runner game, but the tiles are spawning at the wrong position and on the wrong axis.
Technically, the code is working as it should, it is spawning and ...
1
vote
2
answers
1k
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! ...
0
votes
1
answer
2k
views
Unity best practices for 3D tilemap
I looked at the forums and found out that it is not recommended to use the terrain system for the mobile platform. So then I decided to have a single plane as a "terrain" with single ground ...
2
votes
1
answer
1k
views
Seams on tiled wall after lightbaking in unity
I spent several days now trying to fix the seams in my unity scene whenever I hit the lightbaking button.
My setup is a wall out of different parts created in blender and then stitched together in ...
0
votes
2
answers
481
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:
<...
1
vote
0
answers
148
views
Improve performance of hexagonal tiles
I am trying to create a game similar to a board game on a hexagonal grid (also similar to Civilization game).
I want the tiles to be able to display various textures and of course be able to detect ...
0
votes
1
answer
207
views
How to find out which biome the player is currently on
I'm using Godot 3.5 and OpenSimplexNoise to generate my 2D topdown world with right (auto)tiles. How can I detect on which biome I'm currently standing on?
This is how I generate my map (in some way ...
3
votes
1
answer
615
views
Isometric ordering issue with moving entities taller than one block
I'm having a lot of trouble sorting it in such a way that it works with a moving entity that is "taller" than a "block" size in this map. I've recorded my problem here:
https://www....
0
votes
1
answer
690
views
How to convert a list into coordinates in pygame
I'd like to have a map in my pygame game but don't want to waste time moving each individual object in it. To resolve this, I'd like to iterate over a list like this:
[1, 0, 0, 0, 0,
0, 0, 0, 0, 0,
0, ...
0
votes
0
answers
253
views
How do buildings in (Tile based) city builders/colony sims keep track of each other? [duplicate]
Like, how does a building in these games know if they're being powered? Or if they're within range of influence of a hospital or fire station, etc.
How would they know where to send an NPC or ...
0
votes
1
answer
116
views
Tile system Meta data
I am creating a strategy game in LibGDX with a tile system and destructible tiles. I am using an array of enums to represent the different types of tile, eg:
...
0
votes
0
answers
26
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 ...
0
votes
1
answer
558
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:
...
2
votes
1
answer
310
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 ...
1
vote
1
answer
144
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 :
,,~,,,,~,,,,,~,~,,,,,~~,,,~,,,~,,,~,,~~~,~~~,,,~,,,,~,~,,,~~,~,,~,~,~~,~,,,,,~,,~~,...
1
vote
1
answer
1k
views
Remove a tile from a scene with GDScript in Godot
How do I remove a tile from a scene programmatically? I have tried the following to no avail:
...
1
vote
1
answer
1k
views
How to layer multiple terrain tile types using Marching Squares
I've done a lot of research on marching squares, including:
https://www.omiod.com/docs/pdf/Squares-Made-for-Marching.pdf
https://en.wikipedia.org/wiki/Marching_squares
https://www.reddit.com/r/...
0
votes
0
answers
63
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 ...
0
votes
1
answer
2k
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 ...
3
votes
0
answers
350
views
How can I generate random splatter shapes like these?
I am trying to make a tileset. I made some tiles by hand in GIMP using one of the included pencil shapes. I would like to automate the process. They need to fit in the square and have the features you ...
1
vote
1
answer
223
views
Cannot properly get 2D top-down tile-based collisions
I am using HTML, CSS, and plain JavaScript for a 2D top-down tile-based simulation. I am trying to do collisions in which, for example, if I move up and hit the ceiling collision tile, I cannot ...
1
vote
1
answer
238
views
How do I carve rooms and corridors into my map to connect exits placed at the edges?
I'm creating an adventure/RPG top down game where the map is randomly generated divided into zones. A major problem I'm having trouble figuring out is creating exits placed at the edges. The game is ...
0
votes
0
answers
92
views
TRPG data structure
I have this question since a while now. In a TRPG game like Fire Emblem or Advanced Wars (or even in something simpler like a chess game) with tiles and units, you need to store where each unit is in ...
2
votes
2
answers
602
views
Finding nearby tile objects with a certain tag more easily
I have generated a grid with hex tiles. I am using two different types of tiles and would like to at some points ask the tiles, how many tiles of each type they have as neighbours (or really, it would ...
0
votes
1
answer
236
views
How to tile a texture
I'm creating a simple program in C# and now i'm trying to slice an image into multiple tiles similar to a grid pattern so it does not get stretched when drawing to different resolutions.
What i'm ...
0
votes
0
answers
167
views
Changing block shape to blend with adjacent blocks
I am in the process of programming a Minecraft like game in Unity. I am currently implementing the block mechanics.
My goal is that when a block is placed, it has an effect on its neighboring blocks ...
6
votes
1
answer
4k
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 ...
3
votes
1
answer
239
views
How to maximize enclosed area and minimize perimeter on a grid with obstacles?
Developing an RTS game, I have a tile-based terrain (grid) filled with obstacles. It looks like this (red shapes are obstacles):
Now I need to plan an enclosed area on the terrain with some ...
0
votes
1
answer
374
views
Scrolling the map in a 2D a tiled game
I am making a small game where I store information about the world around the player (like tiles) using a small 2d array of integers. In the game you can scroll the screen to the left or right. I also ...
2
votes
3
answers
4k
views
Unity 2D animated tiles library: IsSelected variable not working or not present within RuleTileEditor.cs
I have just tried downloading a library which will allow me to add animated tiles to unity. I have been following this tutorial:http://shadowpeakstudios.com/2018/10/22/unity-tutorial-animated-tiles/
...
0
votes
0
answers
1k
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 ...
1
vote
1
answer
421
views
How to either draw a group of tiles completely behind or completely in front of a player?
Say you're rendering a 2D top-down tile map and there are some objects in the tile map that the player should be "in front" of when below them, and "behind" when on top of them. ...
0
votes
0
answers
157
views
The tile cursor is not on the same tile I selected
Here is the image, when I select the tile I want to paint, it paints in the correct box where I want it to be but the white cursor should also be in the same box but it is 2 units to the left? This ...
0
votes
0
answers
87
views
How to inform pathfinding of solid objects blocking path?
I'm sure this has been asked before, but I couldn't find the thread. Let me know if you can locate the duplicate.
So, I have a my level is an array of tiles, where a tile can either be solid or ...