Questions tagged [tilemap]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
546 views

How do I manage the visibility of enemy spawn locations in a long scrolling shooter?

How do I handle the situation of an enemy spawn place being visible on a screen in a scrolling shooter? The tutorials I have seen are about setting all the enemies on a whole map only. But it is not ...
Gargo's user avatar
  • 111
0 votes
2 answers
685 views

How do I handle specific tile/object collisions?

What do I do after the bounding box test against a tile to determine whether there is a real collision against the contents of that tile? And if there is, how should I move the object in response to ...
Thomas William Cannady's user avatar
0 votes
1 answer
112 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
  • 11
0 votes
1 answer
230 views

Can I use normal images to make tiles in Unity?

If I'm not wrong, those are steps to use tiles with Tilemap in Unity Upload sprites to Unity Create a palette. Upload sprites to the palette to create tiles. I need some static images to use with ...
kozavr's user avatar
  • 23
0 votes
1 answer
77 views

How can I implement the player being able to place tiles on a 1d array grid?

Tell me if I need to provide more info. My tile-based sandbox game needs to allow the Player to place tiles He has collected. But the problem is, I do not know how I can place the tile based on the ...
Macho Onion's user avatar
0 votes
2 answers
199 views

How to check multiple rings of tiles around a center tile on a 2D grid

In my game project I create the terrain programmatically by creating tiles on a 2D grid as the player moves around the game map. I have it working where I select the current tile and check all 8 ...
peacetype's user avatar
  • 145
0 votes
1 answer
348 views

Tilemap is rendering all tiles as black squares

I'm trying to render a 2D tile map. I've placed a Tilemap object in the scene from the create 2D object context menu, set a reference to it to one of my script ...
Mason Wheeler's user avatar
0 votes
1 answer
373 views

High CPU usage with Godot tilemap

I am using Godot as my game engine and I am making a basic 2D game, I have a small map with 1 Player and 5 Enemies walking around in it. The game includes some basic code for walking and shooting at ...
pion's user avatar
  • 55
0 votes
1 answer
1k 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
  • 561
0 votes
1 answer
201 views

How to track when the player collides with another tile?

I'm using Unity to create a 2D platformer game. I ran into an issue I was hoping someone could help me with. I'm using OnCollisionEnter2D() to detect when the player gameobject touches the ground, ...
Mav's user avatar
  • 99
0 votes
1 answer
73 views

Are there tilemaps without images?

I would like to use Tiled or a different editor to create a simple world (top-down). But I don't want to use any images. I just need colors to distinguish the different types of terrain. What would be ...
Edgar Alloro's user avatar
0 votes
1 answer
261 views

Turn-based grid movement - each click of the clock you want to move the player

I am working one the movement for a tactical turn-based pygame. I'm stumped as to how to get a selected object to move one tile at a time up to it's max movement to the mouse's pos. Right now this is ...
AnimalChubs's user avatar
0 votes
1 answer
117 views

How to get area of grids?

Firstly,I don't know if my question title is true but I couldn't find better title, sorry If I titled wrong. I'm trying to grid base game. The player is moving grid to grid and never stop between ...
Apoleytaa's user avatar
0 votes
1 answer
38 views

Select box-shape grid between two positions on tilemap

I want to be able to click and hold on a certain point and mark it as startPosition. Then, while the mouse is held down and moved, mark that second position as <...
caleidon's user avatar
  • 561
0 votes
1 answer
879 views

Select specific tile in Tilemap

I am following this video tutorial on how to implement drag-to-select behavior like in an RTS. The only difference is, I'm using a tilemap. The selection area is a square which I can drag to make it ...
caleidon's user avatar
  • 561
0 votes
1 answer
53 views

Place tiles along a specific axis / direction

I want to be able to place tiles only in the direction I've started "drawing" them. For an example, if I click and hold on tile at position (0,0), and ...
caleidon's user avatar
  • 561
0 votes
1 answer
323 views

How to perform right-angle pathfinding?

I'm developing a procedural dungeon generator using pre-built rooms and currently I'm using A* pathing to create corridors to connect one room's door to another room's door. The problem with this is ...
Ryan Peschel's user avatar
0 votes
1 answer
183 views

How can I avoid coupling between units and their environment?

Currently in the process of making a game like Dwarf Fortress, so without graphics. I'm mostly thinking about how I want to implement everything. While writing code I keep stumbling on general game ...
Duco's user avatar
  • 1
0 votes
1 answer
203 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
1 answer
721 views

Why isn't my tilemap collider appearing?

I am trying to make a 2d game but my player falls through the tilemap every time. My tilemap collider doesn't seem to show up. What is going on and how do I fix this? The first image is rigidbody ...
Nolan the Dank Meme Lord's user avatar
0 votes
1 answer
438 views

How do I determine the player's grid position?

My original method for doing this involved taking the player's position, dividing it by the grid cell size, and rounding the result. This works for most cases except when I move my player up above y-...
Kennichi Nitta's user avatar
0 votes
1 answer
109 views

How to Generate Level Map Based on Golden Ratio

I am trying to generate a map based on the Golden Ratio: a+b is to a as a is to b. I was looking at a JavaScript math library that had a built-in phi, but I wasn'...
oxr463's user avatar
  • 103
0 votes
1 answer
85 views

How to access and change a Tilemap's Order in Layer?

I'm making a game about two ghosts, and an important thing that I want to add is the possibility to pass through walls. I have managed to make the passable behaviour and everything. Next, I need to ...
DreadZitoDev's user avatar
0 votes
1 answer
307 views

Isometric Tilemap is blocking UI elements

I'm using Unity 2019.4.6f1, and I'm working on Isometric Tilemaps. The hierarchy is like this: The VillageScreen is a Canvas, ...
Raptor's user avatar
  • 141
0 votes
1 answer
77 views

XNA's SpriteBatch resizing is not sharp as i use it [duplicate]

I draw a TiledMap with TiledSharp and i've introduced a resize factor when drawing, that looks like this: ...
Louis BERTRAND's user avatar
0 votes
1 answer
588 views

2D Tile based game Texture Atlas combining

I am new to OpenGL and game dev, I have been to courses and trying to learing everything about this. My task is to implement a Texture Atlas in a 2D tile based game (very similar to Tibia) using ...
Danilo Pucci's user avatar
0 votes
1 answer
1k views

How to enable the option "edit physics shape" in the Sprite Editor?

I can successfully import .png files, create tilesets, and use them in my tilemaps in Unity. Thanks to DMGregory, I just learned that there exists an option to ...
padawan's user avatar
  • 233
0 votes
2 answers
134 views

How to implement a mechanic of entering a town

I am planning a game played on a 2-D map, where some spots are "towns". When the player walks into a town, he enters a high-resolution map of this town; when he exits the town, he returns to the low-...
Erel Segal-Halevi's user avatar
0 votes
1 answer
65 views

How do you repeat 2D tiles in Java code when you go out of range?

I am looking up tutorials on how to make 2D games, and I can just copy and paste their code but I would rather know what it means and how to do it. Suppose you have a 2D game window that has a map ...
David Rees's user avatar
0 votes
1 answer
545 views

Unity Tilemap's WorldToCell always return with (0, 0, 0)?

Based on a Vector2 I want to know the coordinate of the tilemap at that position. But for some reason, it always returns (0, 0, 0). Why? Why? ...
Tudvari's user avatar
  • 711
0 votes
1 answer
371 views

How to make wall tiles overlap floor tiles a bit in Unity3D?

Currently my tiles are very strictly placed, there are wall tiles, and floor tiles, and they don't overlap at all. What I want to achieve is to have my walls overlap my floors a bit. So their inner ...
Tudvari's user avatar
  • 711
0 votes
1 answer
834 views

Unable to edit tile sizes in unity

I'm trying to change the size of sprites in unity to fit the palette. Except there are no options to change multiple sprite sizes at once. But when I watched a youtube video on tilemaps and palettes, ...
River's user avatar
  • 3
0 votes
1 answer
2k views

Tiles in the Tilemap dont overlap properly

This is my first try making a "proper" game in Unity. I'm using the latest version (2019.2.2 at the time of writing) and I'm writing with C#. This is a project I'm doing for my studies, together with ...
Christopher's user avatar
0 votes
1 answer
286 views

How to handle a scrollable map and player coordinates

I have a large map that a player will navigate over. Currently, it is just a single background image, but I would like to make it tiled map. How do I properly keep track of player coordinates? ...
kojow7's user avatar
  • 113
0 votes
1 answer
312 views

How can I do a Metroid like transition between two tilemaps with Monogame Extended?

I want to do a transition like those in the Metroid games. Here is an example of what i mean: https://www.youtube.com/watch?v=RKJ3MAi0ZI0. You enter the door, the screen fades to black and the camera ...
Ultralord's user avatar
0 votes
1 answer
2k 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 ...
ConShonnery's user avatar
0 votes
1 answer
681 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 ...
GuiTeK's user avatar
  • 103
0 votes
1 answer
219 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 ...
Federico Caccia's user avatar
0 votes
1 answer
542 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 ...
Fedor Alexander Steeman's user avatar
0 votes
1 answer
59 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 ...
Labrockstar's user avatar
0 votes
1 answer
528 views

Tiled - Possible to create a terrain from this specific tileset?

I'm really new to Tiled and I can't get the hang of creating terrains. I have these really nice 2D assets I would like to use but I can't get the terrains to work. I'm trying to create a dirt path ...
Brigante's user avatar
  • 101
0 votes
1 answer
706 views

Love2D STI library not drawing map at all (black screen)

I'm trying to use a pretty standard map with the Simple Tiled Implementation module for Love2D, but no matter what I try, I can't get it to display anything but a black screen. Here's my current code (...
Alexis Purslane's user avatar
0 votes
2 answers
895 views

Phaser is not loading the same map created in Tiled software

I have created a sample map using the tiled software. Then tried to load the same on a webpage using phaser.js. But I am not getting the proper result. Is there any mistake in my code or something ...
Ashish's user avatar
  • 25
0 votes
1 answer
590 views

How to load/unload chunks data where view port is currently focused on?

I have a 2D tile based engine with infinite procedural chunk generation. But I can't invent an algorithm, that will fill only chunk tiles on view port (and destroy old). Pls help ViewPort size can ...
Michael Kors's user avatar
0 votes
1 answer
581 views

Optimization of 2D terrain generation algorithm

I am generating 2D terrain with 2D opensimplex noise, however I am having a problem with the FPS that is low when generating the terrains in TileMap. An example of how my game generates the terrain in ...
PerduGames's user avatar
0 votes
1 answer
261 views

How do I deal with this tilemap wraparound edge case?

I'm building a 2D game engine that uses tilesets to build levels. I recently added functionality to handle wraparounds (ie. where the right edge of the map connects to the left edge.) The engine ...
Mason Wheeler's user avatar
0 votes
1 answer
880 views

How to draw a character behind and in front of a building? (isometric map)

how is it possible to draw the player behind and in front of some building in an isometric map : should I slice them, replace the number in the map (one number for a tile usually) by an array of ...
Reign Ravel's user avatar
0 votes
1 answer
370 views

Unity 2D sprite animation keep in sync after setting inactive

I am creating a 2D sprite-based game and the tile map contains many animated background tiles (such as water). The map contains many areas that can be transitioned between in a Zelda style (camera ...
Sarathi's user avatar
  • 121
0 votes
1 answer
701 views

Love2D and 'Tiled' - Detect if player is over certain tile/Collision

I created a 50x50 tile map with 32x32 tiles in Tiled and exported it as a Lua file so I can use it in Love2D. I have a player you can move around the world but I'm attempting to convert the player's x ...
freemann098's user avatar
0 votes
1 answer
353 views

Unity TopDown parallax effect only working in three of four directions

I'm a hobbyist at programming so I'm sure I'm missing something very simple: Basically I have a script that has a method for repositioning a 3x3 grid of tiles every time the player goes out of the ...
Dbilyk's user avatar
  • 33

1
9 10
11
12 13
15