Stack Exchange Network

Stack Exchange network consists of 174 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
16 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
18 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
62 views

Set stats per tile in Unity

I was trying to implement a destructable tile like: ...
1
vote
0answers
43 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
39 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
37 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
41 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
151 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
17 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
0answers
56 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
45 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
41 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
167 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
79 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
0answers
40 views

How should I make a Tile-based Plat-former engine using Processing js?

I'd like to know what structures I should use for creating a Tile-based Platformer. I've created platformers before using processing js. Is there any documentation on this? Before I do this I'd like ...
0
votes
1answer
75 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
293 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
319 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
105 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
168 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
81 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
39 views

Pseudo 3d roguelike: map representation [duplicate]

I know it's a very common question, so I'll try to be specific. I'm working on a pseudo 3d (like Dwarf Fortress or Cataclysm: Dark Days Ahead) roguelike. How you'd represent a map in a roguelike? Let'...
0
votes
0answers
34 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
34 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 ...
0
votes
0answers
46 views

Perfect Tiling for Photos of Floors and Walls

I am trying to design a realistic 3D environment from photos, where by means of a photo of a portion of a wall or floor, you can clone this photo and create a complete wall or floor. However, when I ...
1
vote
1answer
762 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
81 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
116 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
125 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
76 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
46 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
381 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
168 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
167 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
18 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
78 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
108 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 ...
1
vote
2answers
118 views

HTML canvas how to create big game world and show only a part of it on canvas?

I originally created this question at stackoverflow but got no answers, so hopefully someone will be able to help me here. So for the first time ever I'm making a html canvas game. So far I came up ...
0
votes
0answers
41 views

How SKTileMapNode size impacts game?

Despite already having some experience with mobile dev and swift, I am now trying to learn spritekit for some gamedev. I decide to start trying some map creation, with SKTileMapNode, while learning ...
0
votes
0answers
33 views

How to prevent fixed-tile movement

I have a tile-based game with dimensions of 28 x 31 (I'm recreating Mrs. Pacman), and inverted y-axis. The upper-left tile is 1,1 and the lower right is 28,31. Due to the map being very small, I'm ...
0
votes
2answers
97 views

Storing 2d map data as PNG

Just a question regarding the storage of 2D map data. There are several topics discussed within gamedev, i.e. Array Storage: How to store 2D tile-map, custom map formats: A way to store potentially ...
4
votes
1answer
89 views

Help Improving Map Generation

I've recently attempt for the first time to implement a map generation system and while it does work, it doesn't work exactly the same I want but I'm not really sure on what changes I can make it to ...
2
votes
1answer
302 views

Basic Random Tile Map Generation

Currently I've got a map like this: It's pretty simple but what I want is that area of tiles to be random, with the number of tiles present being random (Within a minimum and maximum amount of tiles ...
1
vote
1answer
146 views

Javascript/HTML5 canvas: Integrate scrolling tilemap with map server

I am playing around adapting the example code at Mozilla Dev Network: Square tilemaps implementation: Scrolling maps to fit with a server I wrote myself. There's a link to the original source code at ...
2
votes
1answer
920 views

Runtime Access to Unity 2d Tiles

I'm trying to use Unity's 2017 tilemap features. What I would like to do is push a tile's sprite up (change its offset), so that the sprite moves up pixel by pixel and the top of the sprite loops (...
1
vote
2answers
79 views

How can I find multiple starting areas on a procedural map?

I'm using perlin noise to generate a 2d map, with ground types and natural resources. When you start a new game I need to place your town hall as well as your opponents in such a way they are on ...
0
votes
1answer
26 views

Camera not in sync with player

I am currently working on a game in XNA and MonoGame. This game is supposed to be a port of KidsCanCode's tutorial series of creating tile-based games in Python. Here is a link to one of the videos in ...
0
votes
1answer
1k views

Strange warping/shimmering effect with Unity Tilemap and Cinemachine

I'm using a Cinemachine Virtual Camera in a 2D project to follow around a target. The ground / background is a Unity Tilemap GameObject. As you can see in the gif above (or on Imgur), when following ...
0
votes
1answer
223 views

Sprite character/item less than tile size

I am starting to work on a 2d top down tile-map game for fun and learning purposes. I have read some great answers here re tile-map size vs character sprite size, pixel density, ppu, screen resolution ...