Tile map is a technique of re-using small graphic pieces, tiles, over and over again to shape the game field.
0
votes
0answers
64 views
Trouble with UV mapping
I'm working on an instanced tile map system, and I have some problems to apply the tile texture to each tiles.
It seems that the texture calculated is only a color box.
I checked my UVs coordinates ...
3
votes
1answer
88 views
OpenGL large tile map rendering
I want to be able to have a big tilemap (e.g. like Terraria, or an infinite procedural generated one), with only a handful of tiles on my screen.
This means that I have a texture atlas (i.e. ...
6
votes
2answers
101 views
Drawing huge amount of tiles in Monogame (XNA) efficiently
I'm asking this question because I haven't found a definitive answer to it.
Let me first of all state a few things about the game and what I have already done. The game is a going to be a RTS set in ...
1
vote
0answers
17 views
Drawing a possible movement area in a tiled map [duplicate]
I've been developing what's meant to be my first of many Game Maker projects, and here's my biggest problem until now:
I'm trying to draw a grid depending on the "move" variable from a unit (the ...
1
vote
1answer
39 views
TiledMap taking a lot of time to load in libgdx
I am developing a game using libGdx in which a level has 2400 * 450 tiles Map and each tile is of 4 pixels. I am also using box2d in my game.
My problem is that when I run the game on my phone it ...
1
vote
1answer
17 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 ...
0
votes
2answers
31 views
Use tilesets or a complete image?
Whats the advantage of using tilesets instead of importing the entire image itself ? Is it giving us some sort of advantage (in terms of memory maybe) ?
Also, how much of a disadvantage would it be to ...
0
votes
0answers
16 views
LibGDX orthogonal Tiledmap z-sorting for bigger tiles
I use a comparator to sort all tiles by their y-values so it's rendered correctly. Npcs behind tiles are rendered earlier. But how do I do this with bigger tiles for example a 1x2 wall? The bottom ...
0
votes
1answer
34 views
How to cache tile map?
I am trying to write a strategy game with PHP, and basically I have a 1d based tile map (grass, dirt, sand, castles, etc.) stored in a database. Now where is 40k records, from x1y1 to x200y200 and I ...
0
votes
0answers
30 views
Character and Tile-map Interaction - Where does the interaction take place?
I have been programming/coding recreationally for around 4 years now and recently have been really trying to sharpen my skills. One of the biggest problems I struggle with is architecture of not only ...
0
votes
1answer
182 views
Trouble rendering tiles using opengl 3.3
I'm using SDL2 and Opengl 3.3 to make a 2D tilemap system and I'm stuck at applying the texture to my tiles at the render. The procedure is the following :
For each tile I draw, I calculate the ...
0
votes
1answer
40 views
LibGDX - Turning TiledMapTiles into objects
I'm working on a harvest moon type game and I've already created lots of assets and have a working player. Now the issue is with the tile map. I use Tiled Map Editor to make the map and it renders ...
0
votes
0answers
78 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 ...
0
votes
1answer
39 views
How to convert or import files from Illustrator in Tiled for game development?
I have created all my images for a game in Illustrator, now I want to convert them in Tiled Sheets for developing my game in libGDX.
So could I import or convert these .ai files from Illustrator in ...
0
votes
1answer
51 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 ...
0
votes
1answer
94 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)?
...
0
votes
0answers
22 views
How can set up a “custom rendering region” for tilemaps?
PhaserJS has a great support for rendering and handling tilemaps, but I miss a crucial feature.
Assume that I need some portions of the screen (or more specifically, the canvas serving as a "domain" ...
0
votes
0answers
16 views
Remove orange overlay in tilemap editor in unreal engine 4.14.3
I'm using Unreal engine 4.14.3 and I can't get rid of the orange overlay in the tilemap editor. Does someone know how to fix this?
*I've already posted this on the normal stackoverflow. But for some ...
1
vote
0answers
54 views
How to stop this object from overlapping tile's corners in 2D tilemap
I am using a tilemap to create my 2D world. All tiles and the player has an AABB. Currently, I'm detecting collisions with surrounding tiles the player is in, from the player's center. This works, but ...
-1
votes
1answer
31 views
Map not loading from text file
Ok, so I have a text file filled with 0s and 1s. When there are 1s, I want the code to add a block to the block array. For some reason it is not reading it right at all.
World.java:
import java.awt....
1
vote
1answer
38 views
Map Engine Rendering Broken
So I've been making my own tile map engine in LibGDX as the one currently implemented doesn't support collision detection with scaling. So I've come up with my own Layer and Map class and a drawing ...
0
votes
0answers
32 views
How do I generate concatenated looped edges from a tilemap
I have been looking for a place to ask this question. I hope I've found the right boards. If not I'm sorry, I would appreciate any advice on where to ask this :)
My Problem:
I'm working on a C++ ...
0
votes
1answer
98 views
Reason for white lines in tile-based game
My game is tile-based. I am getting this lines between two tiles. They don't look nice. How can i resolve this issue?
-2
votes
1answer
145 views
Collision using Tilemaps [closed]
How do I get the player in a platformer to collide with tiles
My code for my for loop is
for(var i = 0; i < game.map.length; i++) {
for(var j=0; j < game.map[i].length; j++) {
...
0
votes
0answers
25 views
TiledMap does not showing up -LibGdx
I want to include a TiledMap inside my LibGdx Project.
I did coding like this.
public static final AssetDescriptor<TiledMap> tMap = new AssetDescriptor<TiledMap>("tmap.tmx",
...
0
votes
0answers
23 views
how i can collider a tilemap and sprite correctly(phaser)?
i have a map using tilemap and a player, both with collision, but when i press UP key for jump the player can jump everywhere meanwhile him have contact with a part of a platform ( down, top, left, ...
0
votes
1answer
41 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 ...
0
votes
0answers
34 views
Libgdx change colors of tiled map
I have a TiledMap that uses a tile set that is gray scale. Is it possible to change or tint the colors at of individual TiledMapTiles at runtime?
I have tried using Pixmap, but it doesnt show the ...
0
votes
2answers
133 views
Placing units on isometric map (2D)
I'm making a map editor for further RTS game (2D), something like the first StarCraft Editor. Terrain tiles will be a rhombuses. So I'll probably just make an 2D array with intigers, that corresponds ...
0
votes
1answer
21 views
Tilling with SDL2 via Clipping - Some bug which is hiding quite well
right at the moment i am writting some code for demonstration purposes. unfortunatly i have an stubborn bug in my code which is invisible to me. The Problem is I am trying to draw a Map. The Map ...
0
votes
0answers
128 views
Best way to render a 2d map?
I can't post more than 2 links (which I use for the images), that's why I have spaces in the links, remove the space between http:// and the link.
Please note this is a different problem than: http://...
1
vote
0answers
32 views
Find all tiles by ID in layer
In phaser 2.6.2, is there a way to retrieve all tiles given their ID from a TilemapLayer? The method searchTileIndex on Tilemap works well to retrieve a tile. It has a skip parameter that allows to ...
0
votes
1answer
56 views
How do I represent blended tiles in a mesh/vertex array?
I recently started making a Terraria clone using the LÖVE library, which is based in OpenGL.
In Terraria, for each tile, there is a large texture with all possible combinations for merging with ...
0
votes
1answer
55 views
tile map collision with player not working - 2D c# xna
Currently the tile map is drawing fine but I am not sure how to proceed with collisions between the player and some of the tiles. Would it be better to specify certain tiles that the player can't move ...
0
votes
0answers
26 views
Tiledmap collision not working as expected in libgdx
I am working on a platformer as a beginner in libgdx and i am following dermetfan's tutorial on tiledmap.I am having some problems with tiledmap collision,its working but having issues while jumping ...
1
vote
0answers
53 views
How to bring my game written in Graalonline engine to Facebook/iOS/Android?
I have a video game that I made before on a game engine called Graalonline. I hosted the game with their engine and servers and recently they stopped hosting my game. Now I have a game on my desktop ...
0
votes
1answer
73 views
How to draw textured tile map in opengl
I am trying to create a textured hexagonal tile map in opengl. I have the VBO and respective index buffer. Additionally I have a texture atlas for texturing individual tiles. I'm attempting to create ...
0
votes
0answers
28 views
Get the layer player is standing upon
In Unity i have a 2d tile map, how can i know on which layer of my tilemap the player is standing? Keep in mind that at the moment i don't have separate gameObjects for each tile as this is a simple ...
0
votes
0answers
45 views
Drawing Pixels to Texture
I have some bitmaps for grass and snowy grass. I am using them for a tiled based map and for a little experimental weather scene.
The current state is that I always need to create a new Bitmap for ...
0
votes
1answer
51 views
Enemy AI chase twitching left and right to move vertically
I'm making an enemy follow the player based on his possition and attack if he is within a distance and his last movement (if the enemy last moved to the left, it will attack to the left, etc.). It ...
0
votes
0answers
49 views
Create a spreadsheet for a tiled map
My plan is to write a tile map generator, that will automatically take the right sprite out of a spreadsheet, and place it on the game board starting from the basics in this tutorial for Unity.
My ...
0
votes
0answers
70 views
MonoGame - Improving 2D array Spritebatch performance
I'm looking to improve the performance of my Draw() method for my tilemap. I've poked around for a few hours and done things like:
Removed any new calls from the for loops where I'm drawing the tiles....
0
votes
1answer
113 views
Top down tile based game render order
I'm making a simple top down (like this) tile based game (using JavaScript, for reference)
I use Tiled for making maps. I have sprites that are more than one tile high, and so whenever they are in ...
5
votes
1answer
166 views
Create a seemless grid-based polygonal tileset
The aesthetics I am going for is demonstrated by many simulation games such as Simcity. But I am looking at this particular example: Polygonal Planet Project by Oskar Stålberg.
I understand the ...
4
votes
2answers
165 views
How to make my Diamond-Square-algorithm less 'random'?
I'm currently writing a world generator for a Tilemap-Engine in C++.
But there is a little problem concerning the Water to Land ratio.
My DiamondSquare-class returns a field of random float-values ...
20
votes
3answers
3k views
Best practice for map coordinate system
Are there any conventions and/or best known methods around coordinate systems in game maps? Is the origin usually positioned in the center of the map? Or does it live in a corner and the map is built ...
2
votes
2answers
133 views
How to efficiently manage tile-based map and items/characters
I'm working on a simple C++ game to learn the language.
It's ASCII and features a tile-based map, enemies and items that spawn randomly. The player is, as usual, the '@' character.
I'm trying to ...
0
votes
1answer
40 views
XNA player/tile collision not working perfectly
So I've built a map tile engine in XNA, and have been working on the player/tile collision. The method I'm using works well to some extent, but the player will often move through the walls and get ...
1
vote
1answer
52 views
Create Full Tile Map Zone in an Art Software, then generate corresponding tile name list?
I'm completely new to tile map creation. I'm a programmer and I'd like to make life easier for myself. It's a bit long to explain the problem I think I have, but bear with me.
The Scenario:
From ...
0
votes
1answer
155 views
JavaScript - Updating a canvas real-time… from server-side or client-side
I have this 2D tilemap game 13x13 viewport (169 tiles drawn on canvas at a time) of a 150x150 map. Each tile is 32x32px. Obviously I only update the 13x13 viewport...
I want to update a canvas in ...