Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tilemap]

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

0
votes
0answers
23 views

Unity2D TileMap Collider Update Optimization

I'm currently working on a 2D tile-based side-scroller (similar to Terraria). I am using Unity's TileMap feature to draw tiles onto the screen and have my player collide with them as if they were ...
0
votes
0answers
10 views

Libgdx Box2d TiledMap Scaling

I think I'm doing something completely wrong but I just can't seem to wrap my head around the box2d pixels per meter conversion. Currently I have a Tiled map with an object layer I want to use as my ...
1
vote
1answer
52 views

Finding a path with minimal number of turns on a grid?

There is a path, generated by my implementation of A*, where diagonals aren't allowed, and the heuristics is the Manhattan distance. Is there a way to always or nearly always find a path with the ...
0
votes
0answers
25 views

Placing tile on second layer results in wrong tile, or changes nearby tiles

So I am working on a 2d game and running into strange behavior when trying to add tiles to a tile map. The first layer seems to work fine but if I add a new layer it will always place the same tile ...
1
vote
2answers
40 views

Even tiles wide pathfinding on square based tilemaps?

By editing my A* algorithm as such that: a tile is valid if all of its neighbours are valid (checking this N-1 deep) I can find N wide paths, where N is odd, and my unit just follow the "center" ...
0
votes
0answers
20 views

How do I determine the distance between two points in tilemaps in unity?

If I have a tilemap with multiple layers, is there any way that Unity offers to help me infer the distance between the two points? Also, as a related question: Are there any libraries written in C# ...
0
votes
1answer
36 views

How can I change a sprite used for a Unity Tilemap tile at runtime?

I want to change Tile's sprite during runtime, but it doesn't render. ...
1
vote
1answer
54 views

Loop around a 2D Tile Map

I have made an algorithm for procedurally generating a 2D tile map in Unity. The player can use the mouse to pan the view and look at the map. My intention was that when the player reaches one of ...
1
vote
3answers
108 views

How to render top-down perspective in a tile-based RPG?

My question is specifically about the type of perspective that GBA Pokemon games like Fire Red/Leaf Green have: I'm not sure of the correct terms for what I'm trying to achieve. I am using SDL2 and ...
1
vote
1answer
69 views

Unity3D Raycasting in Start behaves uncorrectly, but works correctly in Update?

I have this method, which just raycasts at a position downwards, and checks what tile is there, if there is one: ...
1
vote
0answers
37 views

Why don't I see tile-based 3D graphics? [closed]

As we know, tiles can make it quicker to update large portions of the display at once, as compared with a bitmap. To put, say a letter, on the screen, the Commodore 64 typically does two writes (the ...
0
votes
1answer
37 views

How can I show tilemap coordinates in-game in Unity?

I have a game that uses a tile map, and I'd like to draw numbers representing positions on the tile map while playing the game. This would, for example, let me easily write down a note that I want to ...
1
vote
2answers
113 views

Player gets stuck on edges between TilemapCollider2D tiles

I'm currently working on a simple 2D Physics-Based Platformer Project. However, I ran into the following issue: I'm using a Tilemap and a TilemapCollider2D to display the world. When I move the player ...
0
votes
1answer
43 views

Isometric coords to cartesian coords

I'm new to the tilemap feature of Unity, and I'm having a hard time with all those coords. I created a new project, added an isometric tilemap and left all values to their default. In the Unity ...
1
vote
0answers
69 views

Connecting varying tilemap layouts at possible connection points?

I'm building an isometric 3D ARPG in Unity3D, and I have a tilemap, for example a dungeon. I have tiles marked where a door could be placed. I select a random "could-be-a-door" tile from the ...
0
votes
0answers
19 views

Why is my Tile Map is not uploading to the pallete?

The tile atlas I made sliced and separated into different sprites. I opened the tile pallete window and created a new pallete. I dragged in the sliced tile atlas into the place where it said (drag ...
1
vote
1answer
51 views

Unity tilemap collider not colliding with rigidbody

In the wireframe you can see the tilemap collider for this hill. The red circle falls right through however. The circle has a 2D rigidbody attached. Everything is on the Default sorting layer and on ...
2
votes
2answers
100 views

Set stats per tile in Unity

I was trying to implement a destructable tile like: ...
1
vote
0answers
61 views

2D Map Chunks - Individual Files?

I have a 2D map of 500 x 500 tiles, split into chunks of 256 x 256. I'm saving each chunk as a separate file, and I have them loading in as the player moves around. This means however there's over ...
0
votes
1answer
46 views

Split tile based map file into multiple files

I have a gigantic map file (1440x1080) that I wish to split into smaller files (45x45) for faster client reading. I plan to split offline (when running DEV server) so I am not too worried about speed....
0
votes
0answers
60 views

Godot: Possible to create a 2D tilemap and set it as a texture for a 3D surface?

If I created tilemap of some sort of pattern or image and wanted to set it as the texture of a 3d surface or 3d model, how would I do it?
2
votes
1answer
57 views

Rendering Tilemap Tile Layer Side by Side for Infinite/Endless Runner Game

I was strugeling this for days how to implement tilemap into libgdx and box2d with infinite/endless scheme. I can load a single map and display everything on screen. But placing 2 or more tilemap side ...
0
votes
1answer
163 views

Map generator sometimes doesn't work

I am making a dungeon map generator and am currently trying to make it place empty rooms. It first checks if the space is empty and then places a room. The problem is that most of the times it ...
0
votes
0answers
20 views

server coordinate to client coordinate

I've a really quick and maybe dump question and I don't really know how it is handled generaly. I want to make a tile base multiplayer game. Player doesn't teleport from a tile to another but just ...
0
votes
1answer
87 views

How to propertly send map to clients in MMO?

I'm designing a game where the map has 1 M tiles. The game is simple, is a 2D game with low graphic requirements and without player movements, only change states, so I don't need to update player ...
0
votes
1answer
126 views

Unity create Animated Tilemap?

Im trying to create an Animated Waterfall Tilemap from a tutorial video. In his video when the author right clicks he can see a Animated Tile > under CREATE option. But In my case its not there !! ...
0
votes
2answers
49 views

How do you setup a scrollable overworld map on an HTML/JQuery based game?

Problem and Requirements I'm putting together a simple game that will involve an overworld map consisting of 12px x 12px square terrain tiles. These maps may be as large as 500x500 in size (so 250k ...
0
votes
1answer
297 views

How to give individual tiles their own collider in Unity's tilemaps?

My floor tile is a 2D drawing of a 3D platform, for lack of a better description. I want my player character to stand not on the top of the tile but a little inside it, as the red circle does in the ...
-1
votes
1answer
100 views

Depth sorting issue

I've been working on a custom tile-based map editor for a while now, and everything works as expected, or so I thought until I've tried rendering the actual map including the dynamic objects as well. ...
0
votes
1answer
118 views

Generating nav meshes from tile based map (2D)

I'm working on a pathfinder for a MMORPG game, it's not mine; I'm RE it, now I need to create a pathfinder for monsters. But I figured that the client uses tiles for it's pathfinder (for players). ...
1
vote
1answer
425 views

Unity tilemap spacing between imported sprites

What am I missing here? Is Unity's tilemap limited to size 32x32? I am trying to understand why my sprites in my Unity tilemap are spaced apart from one another such that if I paint them into the ...
0
votes
1answer
467 views

How to create “border” around tilemap in Unity

I'm setting up a 2D arena game, and I'm trying to implement an ability for tilemaps to be highlighted (on hover). I've already managed to get a Vector3 of the hovered tile using rays and WorldToCell, ...
1
vote
2answers
113 views

How can I store my 2D map in JAVA?

I'm working on a 2d adventure game where the player can explore a random generated map. It's working perfectly if I set it to be about 3000x1000 blocks (my array is 3000x1000x2), but this is TOO SMALL....
2
votes
1answer
196 views

How to make the background tilemap in Unity3D have a “far away fog effect” filter in a sidescroller game?

I would like my background made of the same tiles as my foreground but with a filter which makes it appear further away from the camera. Making the objects smaller is easy, I just have to decrease ...
1
vote
1answer
82 views

How to avoid rows on screen when cutting spritesheet tiles?

I'm having a problem with my spritesheet, I generate a map but when I zoom in on it I can observe these lines as in the image below: When I used the tiles each in their separate image, that did not ...
0
votes
0answers
36 views

How are really big maps made? [duplicate]

I'm interested in how huge games like The Witcher 3 and Skyrim create and save the open worlds. In my own game I used a system where I stored the map data in a file seperated by commas. For example '...
0
votes
1answer
38 views

Libgdx Tiled | Using setTile results in a NullPointerException

So, I'm attempting to change the texture of a block when the player comes in contact with it by using cell.setTile(tileSet.getTile(926). I've already looked at ...
1
vote
1answer
1k views

Tile palette off-centered

Unity has a wonderful Tile Palette feature. However after I drag and drop the sprites to the Tile Palette, the tiles are off-centered like so (Notice the white square, it's the cursor): I've tried ...
1
vote
0answers
94 views

Performance problems with scrolling html5 canvas for large tile-based game

I try programming a splix.io clone as an electron app and do the visualization via the html5 canvas. The movement across the tiles should look fluent like the original, so I target 60 frames a second. ...
1
vote
1answer
133 views

How can I create a slope/hillsde tileset?

I struggle to create a 2D slope/hillside for a tileset. Not an impassable mountainside like in Pokemon, more a gentle slope which you can walk both directions. When you see the tilemap, one should get ...
1
vote
1answer
220 views

How to drag 2D objects and stop it if collides with other 2D object?

This is the code I am using but it's not working. It drags other object on collision: ...
1
vote
0answers
78 views

LibGDX TileMap problem

my LibGDX map find olny two Layers but the map.tmx file contains more than two layers. Where is the problem? ...
0
votes
0answers
47 views

Unity tilemap wrong draw order

I'm currently making some mockups for my upcoming game using tilemap. The game will be in semi top down perspective. However, I experienced an issue where the draw order of the tilemap is sometimes ...
0
votes
1answer
431 views

Isometric Map with different Z-axis values

I want to create a isometric tile map editor just like the one shown in the images ( pictures are from the game Zoo Tycoon ). I know how to render the tiles when there is only one Z value ( zero ), ...
2
votes
1answer
98 views

Array of map data renders the map the opposite way

A while ago by following some tutorials I made a game map array consisting of 0, 1 and 2. I program it the way I want to see it: ...
0
votes
0answers
211 views

trying to get an int grid of values from unity tilemap

I'm trying to get a 2 dimensional grid of values from a tilemap and found this which seems to do the trick: ...
1
vote
2answers
283 views

How can I deal with tilemap position in the editor?

Right now it is quite hard in Unity 2017.2 to track where is the (0, 0) coordinate in the tilemap editor, when painting. I tend to use a displayable dummy game ...
0
votes
0answers
20 views

Render pre-placed tiles in Tile-Game?

I spent hours thinking of how you would do this, without sacrificing major amounts of efficiency. Basically, it is a pre-placed tilemap that is rendered in "chunks" (like minecraft) for my game so I ...
1
vote
1answer
80 views

Is it bad practice to use the entire map image as a tilemap?

I made a map in photoshop which I want to use as a map in my game. The question is should I try to cut it up to pieces, or is it bad (performance wise) if I use the way I made it. The picture itself ...
0
votes
0answers
129 views

How to do proper collision detection on a tilemap array?

I want to implement a simple collision detection so that when my character hits one of the objects it can't move any further. I have seen some tutorials on collision but the thing is that they are ...