Skip to main content

Questions tagged [tiles]

Identically shaped objects (often squares or hexagons) representing spatial information.

Filter by
Sorted by
Tagged with
0 votes
2 answers
97 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
1 vote
0 answers
93 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 ...
lancen's user avatar
  • 33
0 votes
1 answer
265 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;...
Greelings's user avatar
  • 103
0 votes
0 answers
40 views

Having trouble creating an unbound game using FXGL

I am trying to recreate a game like Splix.io using FXGL, I have implemented the logic of the game for one player and it works. And for my game window I am using a 800*800 window. My problem is my game ...
Pourya Aliannejadi's user avatar
0 votes
1 answer
247 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
491 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
0 votes
1 answer
446 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
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 ...
Aj_Xocan's user avatar
1 vote
2 answers
415 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
0 votes
1 answer
1k 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 ...
Silz's user avatar
  • 37
0 votes
0 answers
860 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
2 votes
1 answer
656 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 ...
Carolin Köhn's user avatar
0 votes
2 answers
261 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
1 vote
0 answers
116 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 ...
I_Keep_Trying's user avatar
0 votes
1 answer
150 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 ...
DDD's user avatar
  • 11
3 votes
1 answer
402 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....
RadicalRaid's user avatar
0 votes
1 answer
457 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, ...
CodeWizard777's user avatar
0 votes
0 answers
190 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 ...
Sir Gaelence's user avatar
0 votes
1 answer
72 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: ...
John's user avatar
  • 101
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 ...
Amedeo Braggio's user avatar
0 votes
1 answer
448 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: ...
silverfox's user avatar
  • 117
2 votes
1 answer
229 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 ...
Macho Onion's user avatar
1 vote
1 answer
58 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 : ,,~,,,,~,,,,,~,~,,,,,~~,,,~,,,~,,,~,,~~~,~~~,,,~,,,,~,~,,,~~,~,,~,~,~~,~,,,,,~,,~~,...
Macho Onion's user avatar
1 vote
1 answer
920 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: ...
Keith R. Davis's user avatar
1 vote
1 answer
597 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/...
sohnda's user avatar
  • 21
0 votes
0 answers
48 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 ...
gunza's user avatar
  • 13
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 ...
caleidon's user avatar
  • 581
3 votes
0 answers
281 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 ...
SPL's user avatar
  • 107
1 vote
1 answer
164 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 ...
Albert Banoy's user avatar
1 vote
1 answer
175 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 ...
Michael Muniko's user avatar
0 votes
0 answers
69 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 ...
STK Oscar's user avatar
  • 145
2 votes
2 answers
505 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 ...
Maree's user avatar
  • 21
0 votes
1 answer
167 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 ...
RickS.'s user avatar
  • 51
0 votes
0 answers
111 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 ...
Reddragonka's user avatar
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 ...
caleidon's user avatar
  • 581
3 votes
1 answer
171 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 ...
Kromster's user avatar
  • 10.7k
0 votes
1 answer
275 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 ...
da123's user avatar
  • 1
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/ ...
DigitalRookie4's user avatar
0 votes
0 answers
761 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 ...
bot 2's user avatar
  • 1
1 vote
1 answer
350 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. ...
Ryan Peschel's user avatar
0 votes
0 answers
123 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 ...
Keira's user avatar
  • 1
0 votes
0 answers
66 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 ...
Ryan Peschel's user avatar
0 votes
0 answers
240 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 ...
Albert Beaupre's user avatar
0 votes
1 answer
248 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 ...
hanmic-6's user avatar
0 votes
0 answers
148 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 ...
Adam Arthur's user avatar
0 votes
0 answers
291 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 ...
Adam Arthur's user avatar
3 votes
2 answers
598 views

Should the entity handle his own movement?

I am currently building a simple turn based game with a Room consisting of a 2D array of Tile objects. Those can be WallTile or FloorTile. Tile objects have a north, east, south and west Neighbour. ...
Oreborous's user avatar
  • 133
0 votes
1 answer
501 views

How can I assign a layer to tiles on an individual level?

I've just started out with my first game in Unity. It's a simple 2D Platformer with a tile-based level. When coding in the movement, I used the Physics2D.OverlapCircle() and an empty to check whether ...
Arkhaven369's user avatar
0 votes
0 answers
25 views

Pathfinding for a destination that is more than 1 tile [duplicate]

I have a 2d grid, and there are situations where the player selects the 3d model of an exit (like a gate) so they could leave, but in reality, the exit is comprised of multiple tiles in the grid: In ...
Anomalous Underdog's user avatar
3 votes
1 answer
112 views

Tile map click to walk UX

My game is a top down mobile game where the player clicks a tile to walk to it. However, it isn't clear where tile boundaries are from just looking at a level, so you could click on the edge of a tile ...
Lucien's user avatar
  • 1,176

1
2 3 4 5
13