As of May 31, 2023, we have updated our Code of Conduct.

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
2 votes
1 answer
2k views

Smooth Wall Collision Detection

I've been working on a small game, and I've been stuck on the collision part. During the collision, when my player hits a block, he stops just as it should, but it then doesn't allow me to another ...
PlatyPi's user avatar
  • 102
2 votes
1 answer
200 views

How do I calculate the position of a vehicle moving between tiles, over time?

I'm working on a small multiplayer game where players can create cities, and these cities will be placed on what's called the "world map." The world map is basically a giant coordinate plane made up ...
josh's user avatar
  • 45
2 votes
1 answer
505 views

Using EaselJS, my spritesheet-based map is not showing up

I have a random map that generates based on a level and a set of Tile ID's, constructed using a Height Map generator I wrote using the BitmapData extension. I've confirmed that the Tile IDs are ...
Merlin's user avatar
  • 139
2 votes
2 answers
1k views

Mixing perspectives in an oblique-perspective game

I've been creating an adventure game using 45 degree angled tiles to create a 3D illusion- aka oblique style. Using 45-degree angles... I can create pretty much any size or shape building I want: ...
user3871's user avatar
  • 1,035
2 votes
1 answer
521 views

Tiled - move all tiles

I'm making a map in Tiled. I quickly ran out of room in the north of my map and would like to "shift" the tiles down. I'd prefer not to have to redo each of the tile layers. Is this possible? This ...
user3871's user avatar
  • 1,035
2 votes
2 answers
279 views

Adventure Games - When and how to start mapping?

I've created a playable oblique-styled adventure game in HTML5, using Tiled for tilemapping. I have a storyline set up, and am ready to make my final draft map. The game world will be loosely based ...
user3871's user avatar
  • 1,035
2 votes
1 answer
2k views

Tile map optimization algorithm

I've read this artical on tilemap optimization https://www.scirra.com/blog/ashley/3/tech-blog-tilemap-tidbits and wondering what algorithm is used to achieve something like this. I'm wondering how ...
Barry Scott's user avatar
2 votes
2 answers
1k views

Best practice to implement persistent data when using Tiled TMX map files?

A friend of mine and I are always talking about our current progress in learning game development. Recently, saving the game (data persistence) came up, and when I summarized how I tackled that for my ...
Mike DePeel's user avatar
2 votes
2 answers
4k views

How to check for collisions in "diagonal" tiles?

I want to create a tiled map in the following scheme: The player should be able to walk on the blue line (street). Now, what is the best way to solve collision detection in this case? For example, in ...
Matthias's user avatar
  • 717
2 votes
1 answer
1k views

Drawing tile images with bigger height on floor tiles on 2.5D isometric map

Hello I am creating my first isometric game. I have floor tiles which are 112*56 in size. This is a simple strategy game I am making, it's an existing game, I just copied the idea for practice since I ...
Ben Beri's user avatar
  • 157
2 votes
2 answers
4k views

How to make different layers in a 2d game map

My question is this: How do I make a gamemap from the drawings on my spritesheet? The tutorial I have followed for making a java 2D game uses this technique to make a gamemap: in photoshop I create ...
user2651804's user avatar
2 votes
1 answer
1k views

What's the most memory efficient way to load a tiled map?

Currently I am working on a simple 2D platformer and I want to load a tiled map. What I've started working on is loading the tiles using a text file. My first question is simple: is a text file the ...
Troubleshoot's user avatar
2 votes
2 answers
1k views

Collision checking problem on a Tiled map

I'm working on a pacman styled dungeon crawler, using the free oryx sprites. I've created the map using Tiled, separating the floor, walls and treasure in three different layers. After importing the ...
nosferat's user avatar
  • 812
2 votes
1 answer
158 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
2 votes
1 answer
1k views

Tile Palette problem in Unity

I am working on isometric tilemap in Unity 2019.4.8f1. In the Tile Palette panel, the selection is always 1 block away. Please see this screenshot: In the screenshot, apparently I selected an empty ...
Raptor's user avatar
  • 141
2 votes
1 answer
650 views

How to load a separate map from a text file?

I have a text file that I am using for my map for the tiles to be allocated. This works fine, but I am running into issues figuring out how I would go about loading in a different part of the map. ...
Jt792019's user avatar
2 votes
1 answer
1k views

Tilemap collision in Pure ECS?

I'm currently making a 2D topdown dungeon crawler using pure ECS and Data Oriented Design. So I only use structs of arrays for all my components. I have now added tilemap generation, but was wondering ...
Styn's user avatar
  • 21
2 votes
1 answer
106 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: ...
Limpuls's user avatar
  • 189
2 votes
1 answer
1k views

How to render a large tile-based 2D world efficiently (using JavaFX/ScalaFX or more generally)

I have a file tileset.png containing a dozen 32*32 tiles. When my game starts, it generates the world randomly with the available tiles and the size of the world ...
Yksuh's user avatar
  • 21
2 votes
1 answer
911 views

How to zoom in and out the full tilemap from center in phaser?

I am developing a game where I need to zoom in entire map also I can be able zoom out. I have created a tilemap using tiled software and rendered it using phaser.js. How can I add this function to my ...
Ashish's user avatar
  • 25
2 votes
2 answers
1k views

Prevent tile layout gaps

I'm making a map viewer where you can specify where tiles go in a map and then see it on the screen, translate it, and zoom in and out. Here's a picture showing the tiles used to make my example map ...
Ryan1729's user avatar
  • 714
2 votes
1 answer
3k views

Unity2D 100x100 tile map, best practice?

I'm trying to create a top-down map in Unity2D, this map will act as an ocean that a 1 tile sized boat will drive across. I want to be able to generate this map programmatically by going through the ...
DasBeasto's user avatar
  • 648
2 votes
1 answer
195 views

In my tile-based game, GameObjects are stored in a std::map<Vec2Int, GameObject>, but I want the GameObjects to be in control of their position!

GameObjects are stored in a Tilemap class, within a std::map<Vec2Int, GameObject> container. The Vec2Int struct describes ...
Ashley's user avatar
  • 245
2 votes
2 answers
316 views

Generating "tile map" by stamping a full map

I'm building a game using Tiled tilemap editor. I was originally creating tilesets to stamp around and create my map in Tiled. Id prefer to create the base map in a Adobe Illustrator and stamp in ...
user3871's user avatar
  • 1,035
2 votes
1 answer
392 views

How do I stop off-screen tiles of a 2D tilemap from being rendered?

I am seeing lag because I render all tiles in my map at once. How can I exclude off-screen tiles from being rendered? My tiles are 32×32 and my player is always in the centre of the screen. Here is ...
Hamish's user avatar
  • 31
2 votes
1 answer
1k views

Store metadata for tile in Tiled Map Editor

In my tilemap-based game, I need to associate lights with light switches, buttons with doors etc. I am using the Tiled map editor (mapeditor.org), but I have yet to find a way to store these ...
jalgames's user avatar
  • 475
2 votes
1 answer
1k views

How to create polygons from tilemap areas?

I'm currently working on a project which needs simple AI's to walk around using pathfinding. I'm trying to find a way to generate a polygon based on the connected tiles (explained below), an i'm ...
Daniel Holst's user avatar
2 votes
1 answer
141 views

Gaps appearing between Sprites when scaling the stage

  I'm learning to use createjs using this game level to-be as a sandbox: http://www.mboyeman.com/dashingdog/   The level is composed of a single background image and 64X64pixel ...
Manny Adumbire's user avatar
2 votes
1 answer
1k views

Aspect ratio in LibGdx

I'm learning LibGdx and I need some help with the camera. Let's see, I'm making a Chu Chu Rocket! clon to start. I've loaded a TiledMap (10x10), and I've created an OrthographicCamera to show the map....
Victor Buendía's user avatar
2 votes
1 answer
2k views

Masking OpenGL texture by a pattern

Tiled terrain. User wants to build a structure. He presses build and for each tile there is an "allow" or "disallow" tile sprite added to the scene. FPS drops right away, since there are 600+ tiles ...
user1304844's user avatar
2 votes
1 answer
3k views

Tilemap collision in component based entity system

I am trying to set up a collision system for a tilemap in my component based entity system, but having trouble with figuring out how to do so. Currently I have the following approach: My tilemap ...
M0rgenstern's user avatar
2 votes
1 answer
153 views

Torque2D, Class vs Datablock

I'm scripting my first game with Torque2D and have not fully understood the difference between "Class" and Datablock. To me it seems like ...
Max Kielland's user avatar
2 votes
1 answer
311 views

Units of measurement in a tile world

I've started to make a 2D sidescroller, the camera and world rendering works as I expect, but now comes the physics part of world. What I need is that one tile in x or direction should correspond to ...
Vilzow's user avatar
  • 23
2 votes
2 answers
465 views

Tile map collision is not working properly

I am having problems setting collision between my sprite and the tiles. I have only done the code for colision for moving upwards but some places on the map it moves up and some places it doesn't. ...
Sigh-AniDe's user avatar
2 votes
1 answer
1k views

Rending 2D Tile World (With Player In The Middle)

What I have at the moment is a series of data structures I'm using, and I would like to render the world onto the screen (just the visible parts). I've actually already done this several times (lots ...
Mick's user avatar
  • 205
2 votes
1 answer
1k views

XNA: Huge Tile Map, long load times

Recently I built a tile map generator for a game project. What I am very proud of is that I finally got it to the point where I can have a GIANT 2D map build perfectly on my PC. About 120000pixels by ...
Zach's user avatar
  • 21
2 votes
1 answer
1k views

Slick2D Tile Based 'Fog of War' Blurring Problem

I'm working on my first Java Game and I have run into a little problem I'm hoping to get some help with. I'm using Slick2D displaying a tile based map, and I'd like to know how I can created a "...
Reustonium's user avatar
2 votes
0 answers
82 views

2D game make precise collisions

I am currently creating a personal 2D tile map game in Java. This is the first time I have attempted to make any sort of game, so I don't have a lot of techniques known by experienced developers. ...
LuckyBandit74's user avatar
2 votes
0 answers
859 views

How to load parts of a large tilemap like chunks in Unity 2d?

I use more pictures so you can understand my opinion better. Here is the video link I recorded. My code has a problem that I use for to render it and cause it to "lag" for 1-5 seconds, so I ...
Qusdrok's user avatar
  • 21
2 votes
0 answers
194 views

Automatic 2d tileset textures

I am currently trying around with automatically generating a dungeon. I'd like to use this tileset https://opengameart.org/content/a-blocky-dungeon TLDR: how do I automatically apply a texture to a ...
CodingKiwi's user avatar
2 votes
0 answers
611 views

Navigation Mesh, Chunks and Funnel Algorithm

I am building a little RTS-like game as a side project and I am currently working on pathfinding. My approach to pathfinding is heavily inspired by things I saw in the Starcraft II map editor, which ...
Markus's user avatar
  • 21
2 votes
0 answers
1k 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 ...
Ben Mroz's user avatar
2 votes
1 answer
842 views

How to make map generation with Perlin noise look more like an actual map

I have been following a guide on Perlin noise, but I can't post the link here because of my current reputation level. I will post code if needed. When I get noise from this distribution, I tend to ...
Nathaniel D. Hoffman's user avatar
2 votes
0 answers
764 views

Webgl: pixel perfect tilemap rendering?

The problem described below is a follow-up of Seamless tilemap rendering (borderless adjacent images). I'm not sure to fully understand the rendering issue I have, so I'll try to describe as much as ...
Nemikolh's user avatar
  • 121
2 votes
1 answer
1k views

Referencing individual cells of a tilemap and changing texture

I have a tilemap and am trying to proceduraly generate islands on it by changing the texture of the tiles and marking it as land ( I want to do this without texture atlas for now). How do you change ...
TheMagicShroom's user avatar
2 votes
0 answers
209 views

State machines and map transitions

I've implemented a [basic] FSM in my game and it currently does its job very well. Recently I have come across a "problem" that I need to show a "Loading map. Please wait..." screen for as long the ...
Yves Calaci's user avatar
2 votes
0 answers
402 views

Hex axial coordinates to table coordinates conversion

I am developing a browser game based on a hex map. I am storing my data based on axial coordinates system. I developed a function which shows me axial coordinates of hexes within ...
Abdel5's user avatar
  • 173
2 votes
0 answers
955 views

Tilemap layer scaling and Camera issue in Phaser

I'm working with the Phaser framework and I'm struggling with a camera/rendering issue when scaling a tilemap layer to simulate a zoom feature in my project. The camera size is set to 1024x768px.(...
koalaforce's user avatar
2 votes
0 answers
1k views

Multi-layered tilemap

I need to be able to efficiently render a tilemap which can be constructed this way: There is one non-transparent base layer Then there can be 3 partially-transparent layers on top of it. Each tile ...
bobby's user avatar
  • 173
2 votes
1 answer
2k views

How do I convert an image into a tile map?

I am working on a game in Pygame/Python, and I'd like to turn an image into a map. The idea is simple: Pixels in the image are colored by tile type. When the program loads the image, I want the color ...
robinspi's user avatar

1
3 4
5
6 7
15