Tile map is a technique of re-using small graphic pieces, tiles, over and over again to shape the game field.
1
vote
0answers
41 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
30 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
35 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
24 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
84 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
139 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
19 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
11 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
38 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
21 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
109 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
18 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
56 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
28 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
46 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
39 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
18 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 ...
0
votes
0answers
49 views
how to deal with huge isometric maps in libgdx?
I'm trying to find a solution dealing with really huge isometric tiled maps.
My game has an top down world view that's rather big, 10.000 x 10.000 tiles of 200 x 100 pixels.
When I try to create ...
1
vote
0answers
42 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
51 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
25 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
48 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
45 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
43 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
84 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
150 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
139 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 ...
1
vote
2answers
92 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
36 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
49 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
111 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 ...
0
votes
1answer
58 views
only one tile being drawn xna c#
I have been looking at tile engines for the past few days and decided to have a go at my own one for educational purposes. I want to use different textures for the tiles of my map, for example 1 = ...
2
votes
1answer
46 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 the object's x and y coordinates. Each GameObject also contains a ...
0
votes
1answer
30 views
LibGDX - Centering different sized Tile Map Levels
Suppose I have a Level 1 tilemap which is 32 x 16 tiles in size, and when the player exits into another room, which is on 10 x 6 tiles in size, what's the best way to center the viewport. At the ...
1
vote
1answer
203 views
Tile based movement with SKAction (Xcode 8, Tile Map)
I am trying to make a game where the Hero can move like in Pokemon with SKActions.
But the movement looks unprofessional and have delays.
How can we handle to move the Hero smoothly with SKActions ...
0
votes
2answers
54 views
How to make an object move outside the map and appear on the other side with a tilemap?
I have a tilemap where a character moves from tile to tile. I'm trying to make it possible for the character to move outside the screen and reappear on the other side, just like the tunnel in Pacman.
...
0
votes
1answer
63 views
How to set building in sequence like COC game using tiles map in cocos2d-x V3.9?
i am developing game in cocos2d-x V3.9. i want to create base like COC game. set all buildings in sequence and it can't be overlap with each others. i want also make boundary for develop city view. ...
1
vote
1answer
42 views
How to iterate tiles around an index tile?
I am not exactly sure how to state this question, what I basically want to do is to seed a tile based map with some values. So I asked myself how I could spread some values outgoing from a start tile, ...
0
votes
0answers
64 views
Travian Map with tiled staggered isometric in xamarin cocossharp
I want to create a static staggered isometric like Travian map in Xamarin (Nothing moves on it , just like travian)
Is Tiled with CocosSharp the way to create it ?
(Please gimme a link to a guide if ...
3
votes
4answers
272 views
Determining how much of a tile is intersected by a ray to help calculate lighting and deal with shadow issues
I'm currently using the following steps for my lighting system
Calculate all the tiles along the perimeter based on the radius of the light
Cast a ray from the center of the light to each perimeter ...
1
vote
0answers
54 views
Advice on mapping tiles to a height map/3D world
I've been attempting to think of a way to map tiles to a height map. Where a grid can be either layered or integrated into the world data. However, since I am not using voxels I could use some advice ...
1
vote
2answers
100 views
How to handle Tilled Map z index order with player in libgdx?
The below 1st image is the example how I render tiled map with player, I can properly change the player z index, If I want to make the player below the box i just set the z index to 0. But the problem ...
1
vote
2answers
44 views
Best way of approach? Mob moving around a section of tiles
Think the beginning stages of Metroid, where there would be a turtle-like mob that would move around a section of tiles, normally 1-3 in a line.
What would be the best approach to accomplish this ...
1
vote
0answers
42 views
Cocos2dx v3 Problem with moving Sprite on tilemap after it was scrolled up
I have a problem I can't solve so far.
I have a scene with tile map on it. And there is a Sprite spawnpoint on map. This Sprite should do MoveTo() action to the point where TouchEnded().
It all works ...
0
votes
2answers
111 views
Big maps with deep zoom and pan
I have a world map of 14048x7134, the game starts with the zoom completely out and during the operation it zoom in and zoom out and pan in all directions, it can get really near the surface, at almost ...
2
votes
2answers
65 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 ...
1
vote
0answers
74 views
Optimize field of vision algorithm in a grid tiled map
I am trying to implement Field of View algorithm in my game and I followed the great tutorial here : sight-and-light and here is what I got so far :
As you can see it works fine for me :)
And then I ...
3
votes
1answer
37 views
Calculating the poly vertices based on the result of Connected Component Labeling
I am making a tile based game.
And now I can find all the connected area using the Connected Component Labeling algorithm.
But now the problem I am having is how to calculate the poly vertices of ...