Questions tagged [tiles]
Identically shaped objects (often squares or hexagons) representing spatial information.
629
questions
-1
votes
1
answer
72
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 ...
0
votes
0
answers
22
views
Why pallete and grid cell sizes differs
I created a tile map with default cell size 1,1. Then I created a palette with the same cell size but they are not the same. In the palette they do not fill the entire cell and changing the pixels per ...
1
vote
0
answers
113
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
51
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
101
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
107
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
99
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
320
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
289
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
619
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
529
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
36
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
577
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 ...
0
votes
0
answers
960
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 ...
2
votes
1
answer
738
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
318
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
121
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
152
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
431
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
497
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
210
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
77
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
23
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
473
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
246
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
61
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
990
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
717
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
49
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
293
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
172
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
178
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
72
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
515
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
173
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
115
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
3k
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
176
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
305
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
816
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
362
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
125
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
68
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 ...
0
votes
0
answers
246
views
LibGDX TiledMap Rendering
For the life of me I cannot figure out why these lines keep appearing on my rendered tiled map. Every time I resize my libgdx window, the tiled map creates lines all across the screen.
I have adjusted ...
0
votes
1
answer
256
views
Rendering tiles at a larger size for a detailed look
I'm trying to make my 32-bit tiled map become more "zoomed" in. However, I experience an error that I can't resolve. Firstly, I followed this post on how to render the tiles larger.
This is ...
0
votes
0
answers
160
views
Seamless tiling?
I'm creating a simple grass/dirt tileset. I'm able to create a seamless tileset by creating 1 unique piece per "direction"... however, this breaks down when trying to create more than one ...
0
votes
0
answers
320
views
Data structure backing tile-based map?
I'm building a tile-based game with a similar art style as Stardew Valley, but have a few questions around technique. My understanding is that it's best to store the maps as a byte array of tile ids ...