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
980 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 ...
codelyoko373's user avatar
2 votes
1 answer
1k views

How to identify a Tile without using its name attribute

In the newly added Tilemap system, the TileBase and Tile have no tag attribute and it is ...
Shashimee's user avatar
  • 1,250
2 votes
3 answers
2k views

Top down 2D game: hole tiles

I'm making a top down 2D game in Unity, here's my doubt: how can I add "hole" tiles to it, so the player could fall (something like Zelda: Link to the past, or the water tiles in Enter The Gungeon)? ...
Guilherme Recchi Cardozo's user avatar
2 votes
2 answers
186 views

Isometric map black screen

I am trying to create an isometric map and I am very new to it. Please see the attached example map. While rendering it I've noticed that when my actor reaches the edges of the map the player can see ...
george's user avatar
  • 121
2 votes
1 answer
754 views

How to figure out which tiles are within view, and where to draw them in the grid?

I know there are a few questions on here similar to mine, but none of them seem to fit my needs. I'm using PyGame to implement a tile based game similar to Final Fantasy or Zelda from the early ...
justthom8's user avatar
  • 123
2 votes
1 answer
827 views

Pixel thin lines appearing between sprites on camera move

I'm going to apologize in advance for the lack of screenshots, but this was a very hard thing to capture, but very obvious to see. I'm using LibGDX to create a tile base rogue-like. Everything is ...
tVoss42's user avatar
  • 141
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
207 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
523 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,055
2 votes
2 answers
294 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,055
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
216 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
755 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
  • 121
2 votes
1 answer
109 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
2k 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
1k 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
2k 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
  • 628
2 votes
1 answer
200 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
325 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,055
2 votes
1 answer
402 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
150 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
161 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
312 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
475 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
2k 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
109 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
1k 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
246 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
839 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
907 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
821 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

1
3 4
5
6 7
15