Skip to main content

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
1 answer
218 views

Reading map.txt from assets android

I'm a beginner android developer currently working on my second app which is a platformer game. I'm trying to read the level map (which I've stored in the assets folder) but I keep getting a ...
Macharia's user avatar
0 votes
2 answers
589 views

Tile map creation, problem with position of tiles

I am trying to create a basic tile map script to learn Unity and I am unable to understand why my tiles are spaced far apart and I can't seem to control their spacing. Moreover, there seems to be a ...
Wraithseeker's user avatar
0 votes
1 answer
2k views

Datastructure for infinite 2D map [duplicate]

I started a 2D Tilegame programmed with libgdx which needs potentially infinite tiles. That means when the player arrives the border of the map it should be possible to generate even more tiles. So a ...
Hummel's user avatar
  • 9
0 votes
1 answer
342 views

Rendering mountains around a tile layer [closed]

When making a 2D Pokémon game, I just faked elevation by putting mountain tiles underneath the land. Now my tiles are 3D models, so I'm using layer properties to define their elevation. What I don't ...
Shien's user avatar
  • 257
0 votes
0 answers
3k views

How to overlay texture materials on top of each other in Unity 2D tiled game

I'm learning how to do a 2D tile-based game. So far, I have followed this tutorial which seems like a good starting point. With his method of building the raw triangles and then applying the uvs, I ...
meepboop's user avatar
0 votes
1 answer
254 views

Tiling 2D textures in random order

I am wondering what the best way to make a random set of 2D textures. Currently I have tried the follow code but I am aware that when this comes to collisions that would be an issue. Therefore I would ...
Eric Coufmann's user avatar
0 votes
2 answers
166 views

Gameobject-Component model with many background tiles - long iteration time

So I'm making a game engine for a game I'm making - the game is a 2D tile-based game I've implemented a gameobject-component style for the engine, for decoupling reasons However, every frame, the ...
Ben Ezard's user avatar
  • 150
0 votes
0 answers
330 views

How to find boundaries in an isometric tilemap?

I have an issue with my 2D isometric engine. I'm using my own 2D camera class which works with matrices and need to find the tilemaps boundaries so the user always sees the map. Currently my map size ...
Yheeky's user avatar
  • 305
0 votes
1 answer
351 views

Tile System with moving Platforms

I am using a tile based system where the level is stored in a char: ...
Ryan Foy's user avatar
0 votes
0 answers
61 views

Working with tiledata of different sizes [duplicate]

I recently bought an asset for my game, basically a tilesheet, with seperate pngs as well, but where as previously I've created tilemaps out of identically sized tiles these are all in varying sizes ...
Stowelly's user avatar
  • 174
0 votes
0 answers
65 views

XNA 2D Tile Map zooming to arbitrary point [duplicate]

I'm working on a game in XNA with a 2D tilemap as the playfield. I'm using a spritebatch with a transformation matrix to provide movement and scaling of the playfield. I'm trying to add a zoom ...
Kieran's user avatar
  • 205
0 votes
2 answers
2k views

Tile map collision and object handling

I want to program a game. In this game there is a tile map and objects that interact with it and them self. For that I made first a TileMap class, in it is only the data of the tile map. Its a very ...
user2933016's user avatar
0 votes
0 answers
148 views

Tilemap mesh issue with z, -z axis

I don't understand why the created mesh is upside down if z ( z*tileSize ) is positive, the mesh is then rendered with the texture looking down. With "-z", the mesh ...
Paul's user avatar
  • 679
0 votes
1 answer
655 views

Tile Maps and vertexZ order for sprites

Here is the setup. I have a orthogonal tile map made with Tiled. There are 5 layers. The bottom 4 comprise the background, while the top layer is the foreground that I will refer to as the “tree” ...
Pluvius's user avatar
  • 311
0 votes
1 answer
2k views

Creating a BufferedImage with several smaller images?

I am making a 2D tile based game. The tiles render fine from a spritesheet and a text file. However, I am using a for loop to draw the map to the screen. When it refreshes, it slows down the loop, and ...
user avatar
0 votes
1 answer
218 views

Is caching tiles like this a good idea?

I have a 2d int array which represents tiles on level like this: 0000000000000000000000 0000000000000000000000 0000000000000000000000 1111111111111111111111 I ...
user avatar
0 votes
1 answer
66 views

Torque2D createTileLayer

The script reference "manual" is not much of a help. When I look up createTileLayer(tileCountX/tileCountY/tileSizeX/tileSizeY) it doesn't say more than it creates a ...
Max Kielland's user avatar
0 votes
0 answers
934 views

can it be done with 2D engine or is it real 3D? [duplicate]

Possible Duplicate: How should I sort images in an isometric game so that they appear in the correct order? My isometric game looks flat; how can I improve this? I'm working with andengine on a ...
Christophe Debove's user avatar
0 votes
1 answer
264 views

Copies of GameScene created when called additional times

UPDATE: It no longer crashes after removing [self removeAllChildrenWithCleanup:YES]; from onExit. The artifacts still remain ...
Orin MacGregor's user avatar
0 votes
1 answer
577 views

2D Tile Based Particle Collisions

I have a basic 2D particle system and I'm now looking to implement collisions, however I'm not sure on what the best way to do it is. My game is tile based and runs in XNA Game Studio 4.0. I've seen ...
MrPlosion1243's user avatar
0 votes
0 answers
966 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
998 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
594 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
449 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
476 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
794 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
648 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
291 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
758 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
465 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
283 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
379 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
837 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
435 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
171 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
381 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