Questions tagged [tilemap]
Tile map is a technique of re-using small graphic pieces, tiles, over and over again to shape the game field.
703
questions
0
votes
1
answer
242
views
How do I zoom in and out in a fully tiled based game
I am currently developing a tile based game in Java and trying to add the option of zooming. I do the zoom by reducing and enlarging the tiles, but the problem is that it creates spaces between the ...
2
votes
1
answer
617
views
Unity higher Z position tiles rendered underneath
When placing tiles in an isometric tile-map in Unity, I try to place blocks on top using the "Z Position Value" However it looks like higher Z position values get rendered underneath.
In ...
1
vote
1
answer
1k
views
How to create a 2D tile-map in python ASCII style
Still learning about python programming and I wanted to create a little map like below but the thing is I know a for loop will draw down not draw across. However, I want to change the size of the area ...
0
votes
1
answer
109
views
Unity Isometric Tilemaps Appear Jagged
I had issues using the isometric tilemaps feature in Unity. Whenever I try to place tiles, they don't seem to line up and create this jagged effect. I've tried messing with the anchor points and am a ...
1
vote
0
answers
294
views
LibGDX Lights and Shadows for my 2D TiledMap Game (like Terraria/Starbound)
Im currently working on my Terraria-Clone. After I have finished generating the world, I would like to add light and shadow to my game. For example, it would be light in the Upperworld during the day, ...
0
votes
1
answer
2k
views
Unity: how do I get a list of prefab tiles from the TileMap?
I'm building a 2D strategy game where I've decided to use TileMap for spaces which characters can traverse. My tiles need to be prefabs, because they will have a script attached to them to store ...
1
vote
1
answer
2k
views
Godot: How to get mouse button input for a Tilemap for Cellular Automata
Conway's Game of Life
I have been working with a tilemap for the implementation of a cellular automata game. My current method for getting mouse button input is using an Area2D as a child of the ...
0
votes
0
answers
29
views
Setting the colour of a dynamically created tile does not work
I have a function that takes in the position of a tile on a Tilemap and sets the colour. If I do not replace the tile with a dynamically created one, it works just fine.
However, if I create a tile at ...
2
votes
0
answers
180
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 ...
2
votes
1
answer
77
views
Tilemaps are loading differently each time
Tilemap data is stored in a 2D array.
It is saved using the following code
...
3
votes
2
answers
468
views
Room Detection on a Tilemap
I am working on a 2D top-down game inspired by Prison Architect.
What I just can't wrap my head around is recognizing rooms built by the player.
The game is built on a tilemap, meaning the map is ...
-1
votes
1
answer
60
views
XNA's SpriteBatch resizing is not sharp as i use it [duplicate]
I draw a TiledMap with TiledSharp and i've introduced a resize factor when drawing, that looks like this:
...
0
votes
0
answers
140
views
Pygame Collision | Why do I slide up walls in my tile based game?
My player if in contact with a wall either left/right/top(head) they will be able to just continue in the Y direction if you press jump as if you were flying. This is for all walls and invisible walls ...
0
votes
1
answer
491
views
2D Tile based game Texture Atlas combining
I am new to OpenGL and game dev, I have been to courses and trying to learing everything about this. My task is to implement a Texture Atlas in a 2D tile based game (very similar to Tibia) using ...
1
vote
1
answer
1k
views
Detect which tile in a tile palette a player is colliding with
I have a megaman-style platformer that I've been working on for a while now. I'd like to have my scene set up so that when a player interacts with certain tiles, it will have some sort of effect on ...
0
votes
1
answer
87
views
Collision quadrant in godot appears
I am learning to use godot following this video:
Collisions with Autotiles
The problem is that when I create the collision for the cliffs using tilemap, it appears me a blue quadrant indicating the ...
1
vote
2
answers
2k
views
How to flatten the collider for a tilemap?
I am relatively new to game development, and am working on a simple 2D platformer. I have created a tilemap and painted some tiles for the character to walk on.. but he is getting stuck. Yes, I know ...
1
vote
1
answer
626
views
How does the use of marching square and wave function collapse differ in a auto tiling?
I am discovering the techniques of procedural generation.
I struggle understanding on the usage of those two techniques:
Wave Function Collapse
Marching Squares
As I understand, both can be used to ...
1
vote
0
answers
258
views
Procedural terrain in the Style of "Zelda: A Link to the Past"
I am working to create a system that randomly generates pseudo-3d terrain on a tile grid using the methods used in the legend of zelda games between link to the past and minish cap.
I have created a ...
0
votes
1
answer
109
views
Conversion between coordinate systems
I have a chunk system that I created for my tile-based game, however I am having problems translating the coordinate in tiles of the cursor to the coordinate in chunks. This is my code so far:
...
1
vote
1
answer
475
views
Why does my tile palette not arrange nicely?
I made my own Hex Point Top Tile sprite sheet, ensuring it's pixel perfect and align well. Slicing in Sprite Editor has no problem too. However, when I drag the sprite sheet to a new Palette in the ...
1
vote
0
answers
918
views
How to fix pink tiles when there is a problem with the Shader?
Because of some dumb mistake I did fifth time, I had to repaint my level in my 2D game.
The problem is that the tiles I use from the Tile Palette turn into pink ...
0
votes
1
answer
757
views
How to build TileMaps dynamically from a database?
The game I'm building allows users to create their own tile maps essentially, so I want the server to respond with tilemap coordinates if / when a user enters their custom world.
0
votes
0
answers
138
views
Creating a border on a tile?
I'm using Godot and I want to set an outline on the tile which is currently being hovered over, but I'm not sure whether to do it as a seperate tilemap which is hidden until it is hovered over or just ...
0
votes
1
answer
1k
views
How to enable the option "edit physics shape" in the Sprite Editor?
I can successfully import .png files, create tilesets, and use them in my tilemaps in Unity.
Thanks to DMGregory, I just learned that there exists an option to ...
0
votes
2
answers
128
views
How to implement a mechanic of entering a town
I am planning a game played on a 2-D map, where some spots are "towns". When the player walks into a town, he enters a high-resolution map of this town; when he exits the town, he returns to the low-...
0
votes
0
answers
22
views
Is there a way to organize colliders? [duplicate]
I am using a tilemap to design levels for my game in Unity.
So, naturally, I need some circle/box colliders to interact with the objects in the game.
I know that if I use a prefab for every tile, I ...
0
votes
0
answers
235
views
How do I create a tile-based footprint trail?
Currently I am working on a quick game for some friends, but I don't know the proper name for this type of game, so here is an example of the mechanic in The Lion King II:
To unlock the exit, you ...
0
votes
0
answers
1k
views
How do I generate a random map with islands (like the Earth), using Perlin Noise, on a tilemap in Unity?
EDIT: I've tried this with Perlin Noise with no success, then with Voronoi diagrams, and now I'm editing the question to reflect the issues I had with Perlin Noise, trying again.
I'm developing a ...
0
votes
1
answer
3k
views
Collision Player and Tilemap Unity
i am a student in austria. I am working on a project for school, where we have to make our own first game with unity. Because it is the first time using unity, i constantly run against problems. Most ...
0
votes
1
answer
63
views
How do you repeat 2D tiles in Java code when you go out of range?
I am looking up tutorials on how to make 2D games, and I can just copy and paste their code but I would rather know what it means and how to do it.
Suppose you have a 2D game window that has a map ...
1
vote
1
answer
2k
views
How do you generate seamless Perlin noise?
I've done a research and tried implementing for months, but I've gotten nowhere trying to make seamless/tileable Perlin noise.
Here is my current Perlin noise file without seamless implementation. In ...
2
votes
1
answer
631
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.
...
0
votes
1
answer
437
views
Unity Tilemap's WorldToCell always return with (0, 0, 0)?
Based on a Vector2 I want to know the coordinate of the tilemap at that position.
But for some reason, it always returns (0, 0, 0). Why?
Why?
...
0
votes
1
answer
329
views
How to make wall tiles overlap floor tiles a bit in Unity3D?
Currently my tiles are very strictly placed, there are wall tiles, and floor tiles, and they don't overlap at all.
What I want to achieve is to have my walls overlap my floors a bit.
So their inner ...
0
votes
0
answers
32
views
Interactive map designer
I've made a simple game in pygame/pymunk. Currently my maps consists of lists with functions, e.g
ground_segments = [ground(position, size, shape...), ...]
I ...
5
votes
3
answers
4k
views
Godot 3.1: procedurally generating TileMap with AutoTiles
I'm making a start on a 2d top-down game in Godot, using a TileMap and OpenSimplex Noise to generate the terrain. It works pretty well, creating decent contiguous regions of different types of ...
1
vote
2
answers
2k
views
How can I add an animation to tile swapping on a tilemap?
I am beginner in Unity and I have created tilemap using new tilemap system in unity which looks like this:
I created a script that lets me swap tiles. First I click on some tile and than I choose ...
2
votes
0
answers
565
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 ...
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 ...
1
vote
3
answers
1k
views
How to store information into the tile?
I have made a map via TilePallete tool.
Now I want to store information in certain tile.
How I can do this?
ForEx:
I'm hittin a certain tile and I need it to have info about health remaining.
For ...
-1
votes
2
answers
367
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 ...
-1
votes
1
answer
328
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 ...
1
vote
1
answer
1k
views
C++ SDL2:2D tilemap with every tile has its own behavior
I am working on 2D tile based game.
I want to render the tilemap from a file but every tile has its own behavior
for example:
magmablock : poorlava();
slimeblock : knockback();
I have this ...
0
votes
1
answer
368
views
Tile based game data structure
I've been working on a top down 2d game and the character moves freely around the map, like zelda link to the past.
How would you model the data structure for such a game in order to implement ...
0
votes
0
answers
931
views
(Unreal) Creating 3D tiles (cubes) for the scenery of a 2.5D rpg (similar to Pokemon Gen IV and V)
I developed a concept for a college class and I think it has enough potential to actually become a game. The visuals will be similar to games like Pokémon Black and Octopath Traveler as in the ...
0
votes
1
answer
778
views
Unable to edit tile sizes in unity
I'm trying to change the size of sprites in unity to fit the palette. Except there are no options to change multiple sprite sizes at once.
But when I watched a youtube video on tilemaps and palettes, ...
0
votes
0
answers
154
views
How to erase the small gaps in tilemap in Unity?
I want to erase small gaps in my tilemap. The gaps look like this:
The texture I used has no gaps:
I tried by disabling anti aliasing.It didn't worked so what can I do in this case?
1
vote
1
answer
148
views
How to seamlessly handle multiple procedural 2D levels in Unity3D?
I have a dungeon generating algorithm, but I would like to generate X levels, which are all connected somehow.
I have a few approaches, but all of them has problems and questions, and I wonder how i....
-1
votes
1
answer
270
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 ...