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
0 answers
950 views

Google maps layer for strategic game

I found one web site http://e-sim.org/googleMap.html which is similar to my game idea. But I have no experience on game maps developing. Can anyone share ideas how to make similar functionality like ...
user418319's user avatar
0 votes
1 answer
228 views

How to set GameObject on tilemap through script

In the built in Tile Palette tilemap editor, you can choose a GameObject brush to set custom tile GameObjects. How would I be able to set a gameObject onto a tile through a script?. There is no ...
CodeWizard777's user avatar
0 votes
1 answer
970 views

How do I use SetTile() with a tile asset/ scriptable tile?

How do I use Tilemap.SetTile() with a tile asset? I want to use it for scriptable tiles in the 2d-extras package, such as rule tiles, weighted random tiles, and ...
IllegalRazer's user avatar
-1 votes
3 answers
577 views

Java Tilemap Collision

I have tilemaps represented by values from 0 to 4. How can I make the player collide with tiles represented by 3 and stop the player from passing through it ? Here is my code for the player and ...
user2957632's user avatar
-1 votes
1 answer
385 views

Loading the map from an image file in C++

For my platformer tile-based game I want to be able to load the game map from an image file. Consider the following 25x15 px .png (enlarged) representing some level: Assume that each specified ...
weno's user avatar
  • 541
-1 votes
1 answer
472 views

java tile based game :tile lag fix

hi I have a game where it reads a txt file and loads a map 0 represents air and 2 represents dirt I have a class for each tile as well as a tilemap I will show u my code. the problem is it lags like ...
user2957632's user avatar
-1 votes
1 answer
757 views

Perlin noise always produces the same map. How do I generate a different map?

My tile map takes a spritesheet, slices the tiles up based on a resolution, and assigns each tile to an array, which uses an integer. Since perlin noise generates a float between 0 and 1, I multiply ...
Gman0064's user avatar
-1 votes
1 answer
615 views

LibGDX - Map Boundaries

Synopsis Well, I'm making a little top-down JRPG and today I was like 'Yeah, I'm gonna bust out this whole map collision thing!'. I failed. Problem So I went on the internet and looked up 'LibGDX ...
Ammar Tarajia's user avatar
-1 votes
1 answer
288 views

Getting stuck going left with tile based collision detection [closed]

Thanks to Alexandre Desbiens I have awesome collision detection. I can just slide right along walls. However if I try to go left into a wall I get stuck. But the good news is I can just back out and ...
zachdyer's user avatar
  • 249
-1 votes
1 answer
751 views

Screen flashing while window is open [closed]

The screen renders everything in the right place but the entire screen flickers/flashes while it's open. Any Ideas? TileMapEditor class ...
Twiggy's user avatar
  • 123
-1 votes
1 answer
2k views

How to create a map system for my game? [closed]

I wanted to make a small game about space. However, I had a couple of questions [below] How will I draw a map for my game? I would like it to contain a solar system. How will I draw these planets? ...
user36689's user avatar
-1 votes
2 answers
1k views

how to do turn based board game movement on a 2d map

I don't know if what I programmed worth anything, I've never programmed something like that, I just need to handle a player movement on a map, I thought a tile map will work, but I don't know anymore. ...
rolen123's user avatar
  • 119
-1 votes
1 answer
1k views

Should I load a game map as a tile map or as an image map? [closed]

Which is better for game prototyping of a game map: a tile map or an image map? What are their respective pros and cons? Should I, in other words: Load the map as a png and set collision points (...
dineshswamyp's user avatar
-1 votes
2 answers
438 views

How to figure out that I'm onto ice tile?

It might be very silly question but serfing for two hours still can't find an answer. I'm trying to replicate battle city. I've made level with TileMap. But can't figure out how to know that my tank ...
Sergey Popov's user avatar
-1 votes
1 answer
277 views

Java create a Polygon for each island in tile game

I am making a 2d top-down tile based game, which is randomly generated each new world. What I want to do is create a Polygon (or other more appropriate shape I don't know of) for each landmass not ...
tygzy's user avatar
  • 129
-1 votes
1 answer
373 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. ...
vipul's user avatar
  • 1
-1 votes
1 answer
3k views

Xna tile map collision

I finally found a tutorial on tile maps and loading them in from a file that I understand (http://circlessuck.blogspot.co.uk/2012/09/xna-tutorial-basic-tile-engine-part-2.html), however the tutorial ...
Dan Scott's user avatar
-1 votes
1 answer
55 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: ...
shepgoba's user avatar
-2 votes
2 answers
2k views

Tilemap rendering with openGL (why the rendering is extremely messed up)

I'm using SDL & openGL to render a tile-map. The issue is that the tile-map rendering is extremely messed up, and I'm just a bit unsure what I'm doing wrong exactly. It should just be the first ...
danran's user avatar
  • 1
-2 votes
1 answer
780 views

are most 2D games tille based? [closed]

So I'm beginning the planing phase for a 2D game that I hope to deploy for iPhone, Android, and maybe windows phone, and I am writing it in Cocos2DX and I'm looking around for map editors that I could ...
AlexW.H.B.'s user avatar
-2 votes
2 answers
428 views

isometric tile tiled format javascript [closed]

Okay im having a problem with drawing an isometric map exported from tiled. Here is my problem. where it should be like this Here is the code that i used to reproduce the 1st image, what's wrong ...
ryanc1256's user avatar
-2 votes
1 answer
169 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 ...
Artsicle's user avatar
-2 votes
1 answer
2k views

Simple collision detection implementation [closed]

I'm making a game with C++ where the program extracts the lines out of an image (via openCV), stores them in an std::vector< std::vector< int > > and the builds a tile map out of it which is ...
BlackMamba's user avatar
-3 votes
1 answer
355 views

How do you divide the screen into tiles? [closed]

I have been reading alot on tile-based game programming but i could not find a satisfying answer to this question. I want to know how i can divide the screen into tiles of a size like 32? I am doing ...
Zohaib Amir's user avatar
-3 votes
1 answer
2k views

How do I export a .tmx file into a custom format?

I just created a map in tiled software. The problem is that it has created a .tmx file. But I need a different format than that, something I can easily store in 2D ...
dan's user avatar
  • 1
-5 votes
1 answer
1k views

How to properly scroll a 2D tilemap?

Hello and I'm trying to make my own game engine in Java. I have completed all the necessary ones but I can't figure it out with the TileGame class. It just can't scroll. Also there are no exceptions. ...
Sri Harsha Chilakapati's user avatar

1
11 12 13 14
15