Questions tagged [tilemap]
Tile map is a technique of re-using small graphic pieces, tiles, over and over again to shape the game field.
719
questions
0
votes
0
answers
23
views
Sorting tile unity problem [duplicate]
I have a top down Tiled map, and I would like to extract every single tile from the map and set z order layer according to the Y position they have, I have already found the way to have every single ...
0
votes
0
answers
280
views
Making sure the player and the camera are in the borders
What I need is a way to automatically create an invisible border around the current tilemap (tile map uses simple rectangular tiles)
The player character uses
...
0
votes
1
answer
74
views
How can I determine which 2d entity was selected from a overlapping pile
I'm using C++ and SDL2 to learn about coding by creating a clone of a 2d tile-based game I enjoy.
To setup my problem; There can be multiple items dropped on a tile by the player or other entities ...
0
votes
0
answers
194
views
Generating a tilemap and A* grid in unity but they aren't updating correctly
So question is: Why is the unity editor behaving this way (not updating the tilemaps until I go though the scene and click on them) and why is A* not generating the proper grid when Scan() is called ...
0
votes
0
answers
45
views
I can't add the change I made while the game is running to the list?
I realized that my problem has nothing to do with tilemap or something so I need to update my question.CalculateAgain()
In the script below, I run the ...
0
votes
1
answer
143
views
Interpolate colors between vertex in a plane
So I have this plane generated with two different Perlin noises. It has mainly 3 regions, divided by color. I want to smooth out the lines, to create a "gradient" so there are no abrupt ...
0
votes
1
answer
268
views
How To Separate Tilemaps (Unity)
I am trying to separate unconnected contiguous areas in one tilemap into their own separate tilemaps.
0
votes
1
answer
1k
views
How to create and assign tiles via script?
I am trying to make some kind of tileset texture replacer using an editor window.
First, I try to save all tile and texture names in let say "scenename.ctss" (ctss stand for "custom ...
0
votes
0
answers
361
views
Drawing Sort Order in Unity Tilemap
I don't know if this is something I'm doing wrong or if it's a bug with the Tilemap system in Unity.
Right now I am spawning a 100x100 grid of cells with a texture on z-axis 0.
...
0
votes
0
answers
142
views
How to mask 2D tile sprites
I want to use masking technique to be able to reuse tiles. Basically I have the base texture and an array of masking textures for different corners and positions and want to combine the two to get a ...
0
votes
0
answers
80
views
Pytmx loads no tiles or textures, it seems
So, I've been trying to load a tmx file through pytmx But when it loads the file, it only loads a black image with the same resolution as the tmx file.
...
0
votes
0
answers
732
views
How to check what tile the player is standing on?
My goal here is to write a check of some sort in my playerMovement script so that I can check the name of the tile the that the bottom-middle of the sprite is located in on the tile map, from there I ...
0
votes
0
answers
19
views
Sprite sorting is working fine but tilemap sorting is working the opposite way I want it to [duplicate]
I provided some screenshots to display what I'm talking about. The blue tile is a sprite, and the bushes are made from tilemap, each being 4 16x16 tiles. My transparency sort axis is set to 0,1,0. I'...
0
votes
0
answers
25
views
how would i make a sprite go in front and behind a 2d wall? [duplicate]
I've tried a few solutions but none seem to work. first, I tried adding half of that same sprite onto the original and then making the layer higher, which would work, except my original sprite can ...
0
votes
0
answers
241
views
Testing my game in the engine works fine, I export to HTML5 and try but all the tiles in tilemap have disappeared
Here is a link to the live game:
https://44351-w21.github.io/one-screen-platformer-francescainfranca/
As the title says all the platforms in the tilemap do not appear when you run the game on the ...
0
votes
0
answers
483
views
Divide a tile map into multiple images
So let's say I have a tilemap 5 x 5, which equals 25 tiles.
How can I divide my tilemap into 25 different images? I'm using tiled, but I don't know if it is possible to do it on there or if I need to ...
0
votes
0
answers
102
views
Unity 2D Problem: Tilemap Tearing ONLY in Scene View
Facing an annoying problem with unity, googled to no avail. Basically I was having tilemap tearing so I created a sprite default material with pixel snap on. This fixed the tearing when running the ...
0
votes
0
answers
90
views
The tile cursor is not on the same tile I selected
Here is the image, when I select the tile I want to paint, it paints in the correct box where I want it to be but the white cursor should also be in the same box but it is 2 units to the left? This ...
0
votes
1
answer
216
views
How to handle objects on 2D Map
I am making a 2D RPG game in Monogame XNA. For the moment I have 2 kinds of data in my game: sprites objects and tiles.
All the sprites are contained in a array list. I iterate over the sprites ...
0
votes
1
answer
508
views
Removing walls of a tilemap at runtime in unity [closed]
I've been trying to implement some light procedural generation into my game, nothing fancy. Just spawning rooms down in different areas in order to add some replayability. I watched a few videos and ...
0
votes
1
answer
212
views
Isometric tilemap circle around object
I am developing an isometric game like Anno 1602.
I have an isometric tilemap. The default tilesize is 64x31.
My goal is to show the area a building has influence to. For that I want to show a circle ...
0
votes
0
answers
106
views
Seamless tiling?
I'm creating a simple grass/dirt tileset. I'm able to create a seamless tileset by creating 1 unique piece per "direction"... however, this breaks down when trying to create more than one ...
0
votes
0
answers
223
views
Data structure backing tile-based map?
I'm building a tile-based game with a similar art style as Stardew Valley, but have a few questions around technique. My understanding is that it's best to store the maps as a byte array of tile ids ...
0
votes
0
answers
336
views
Trees swaying in the wind using Tilemap
I am working on a top-down, tile-based game (think 2D RPG). However, I would like to have trees that sway in the wind and shake a little if the player bumps into them!
How should I approach this? Is ...
0
votes
0
answers
277
views
Scrolling background in PyGame with Entity Component System
I know this type of question has been asked to death for 'normal' games, however I am struggling with relating a scrolling background to an entity component system (ECS) approach.
Generic samples here ...
0
votes
0
answers
38
views
Reuse and Interact With Multi-Layer Tile Maps
I'm new to game development and try to make a game where buildings are created in tile maps. My problem is that I need to interact with these buildings and I want to reuse the buildings I created.
Now ...
0
votes
1
answer
276
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 ...
0
votes
1
answer
123
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 ...
0
votes
0
answers
31
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 ...
0
votes
0
answers
154
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
114
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:
...
0
votes
1
answer
938
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
190
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
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
297
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
4k
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
0
answers
34
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 ...
0
votes
1
answer
401
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
1k
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
0
answers
174
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?
0
votes
0
answers
45
views
How to check in Unity whether tile B can be reached in a straight line from tile A?
I'm currently trying to smooth out my A* paths based on this article.
This is what I want to achieve:
But sadly I'm stuck at implementing the Walkable method.
I ...
0
votes
1
answer
3k
views
Can I use different Tile/Sprite Sizes on the same Tilemap?
My partner and I are creating a 2D RPG with D&D elements with Unity.
I am very new to Unity and making games in general, apart from 2 games which I created with Java and the rougelike tutorial ...
0
votes
0
answers
33
views
Frog-Lilypad Animation: Animate Unity2D Tilemap based on Player position
I'm developing my first Unity game, involving a frog jumping on lilypads. As the frog leaves a lilypad, I would like it to sink beneath the surface. Here's what I have currently, with the lilypads as ...
0
votes
0
answers
743
views
Moving player one tile at a time (Javascript)
I've been watching this tutorial and found the code works flawlessly. Although, there is something he doesn't cover in the video. How to move the player one tile at a time. Every tutorial I've found (...
0
votes
0
answers
33
views
Find mouse pos in 3D space?
I have a game where there is a set of tiles rotated 45° away from the camera. I want to work out what tile is being hovered over by the mouse, and for that I need to translate the mouse pos on the ...
0
votes
1
answer
1k
views
How do I determine the rotation of a Tile using Tilemap in Unity 2d?
I want to know the rotation of the tile in C# in order to do some logic on another object that is sitting on the tile. The rotation matters for the logic. I don't see anything except GetTileData in ...
0
votes
1
answer
353
views
Algorithm for finding edge vertex points on a tilemap
I have a 2d tilemap array contains 1 or 0. 0 corresponds empty tile, 1 corresponds solid tile. If tile is 1 I draw a texture.
I have to find edge vertices and coordinates that 1's grouped.
I couldn't ...
0
votes
1
answer
1k
views
Tile draws pixels from adjacent tiles
Whenever I try to draw from the tile palette, this is the result. why does this happen? I have tried messing around with the palette, how the sprite editor has sliced the tiles and played around with ...
0
votes
1
answer
266
views
Should I generate 2 array map or use tilemap?
So, I'm trying to build a 2d multiplayer bobmerman game. Right now I have whole map as 2d integer array. I'm thinking if I should change it to tilemap. In the future, I will want to be able to ...