Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tiles]

Identically shaped objects (often squares or hexagons) representing spatial information.

0
votes
2answers
30 views

Defining tileset for Tiled Terrain Brush — incorrect tiles selected at transitions

I'm using TilEd (https://mapeditor.org) to make maps, and so far have used the programs Terrain feature to create water/paths etc no problem. I'm trying to create trees now, and I've been at it a ...
0
votes
0answers
20 views

Scrolling backgrounds without tiles

I'm writing a paper on game backgrounds and need to look at how they are implemented in different games, but I'm a bit stuck on scrolling backgrounds. While it's easy to recognize a scrolling ...
1
vote
1answer
28 views

unity how to automate changing sprite editor setting

I have a bunch of hex tiles that I want to import into a tile palette. However their pivot point needs to be set to y 0.35 when the default is 0.5 I could edit the import settings in the sprite ...
2
votes
2answers
236 views

How should I store world data in a 2D grid sandbox game?

I'm just a beginner game developer and working on my own first project (beyond copying other games for learning skills). Because I really like sandbox games (like Minecraft, Rimworld, Terraria etc..),...
2
votes
4answers
66 views

How to smoothly move camera when the player is climbing a diagonal staircase in 2D tile-based side-scroller?

I am working on a game, which is tile-based, similar to the way Terraria works. My player is 2 x 3 and can move over one-high obstacles, but this creates a very jittery effect, since my camera ...
0
votes
1answer
60 views

C# Unity - Multiplying Colors in loop results in wrong results

Good day, I'm trying to generate a tilemap, my current setup is a base tileset, and a few overlays for the different biomes / terrain heights. In my code, I generate each biome's tileset, based off of ...
0
votes
1answer
79 views

How Can I Fix Where The Tile Spawns?

I am making a 3D game in Unity and C#. I want to spawn another tile when the player is at the end of the current tile. But when I spawn the next tile it doesn't spawn at the right place(just after the ...
0
votes
0answers
52 views

Different textures on the single terrain mesh

I am using Love2D and want to create tiled terrain with a single mesh (to reduce the number of draw calls). I want to change a position of some tiles at runtime and do not want any gap to appear, i. e....
1
vote
1answer
81 views

How to avoid rows on screen when cutting spritesheet tiles?

I'm having a problem with my spritesheet, I generate a map but when I zoom in on it I can observe these lines as in the image below: When I used the tiles each in their separate image, that did not ...
-1
votes
0answers
40 views

Finding a tile data in an array

I have tile vertices stored in an array. How would I go about finding a tile when given its position. ...
0
votes
2answers
123 views

C# Fastest way to iterate over certain tiles overlapping multiple chunks?

What's the fastest way of iterating over certain tiles overlapping multiple chunks in C#. Ideally without having to iterate over everything, just a specific set of coordinates? (green cubes example ...
0
votes
0answers
22 views

Algorithm for tile loading order

I'm working on an Android app (you could call it a "game") that loads meshes (= kind of tiles) depending on your line of sight. Basically I'm generating the ground in a void world in which you are a ...
1
vote
1answer
124 views

How can I create a slope/hillsde tileset?

I struggle to create a 2D slope/hillside for a tileset. Not an impassable mountainside like in Pokemon, more a gentle slope which you can walk both directions. When you see the tilemap, one should get ...
3
votes
1answer
1k views

Runtime Access to Unity 2d Tiles

I'm trying to use Unity's 2017 tilemap features. What I would like to do is push a tile's sprite up (change its offset), so that the sprite moves up pixel by pixel and the top of the sprite loops (...
0
votes
1answer
659 views

Why LineRenderer texture stretching when I set it to tiled?

I see this: I have a Line Renderer set up like this: This is the material: As you can see even if the texture mode is "Tile" the line stretches after the first element of the line. What am I ...
0
votes
1answer
23 views

Build Placement and Connectors

I'm having trouble with the logic for this problem. I've got a grid of modules. Each module may take 1 or more cells on the grid, and each cell of a module may have 1 or more connectors. The ...
0
votes
0answers
117 views

Why do I see blurring lines when moving a camera, and how can I fix it?

I am using Monogame and I'm rendering the terrain as tiles. I am bringing in the tiles from Tiled. When I move my camera up, I get these lines that seem to be blurring the tiles together. Please ...
0
votes
1answer
367 views

How to render a large tile-based 2D world efficiently (using JavaFX/ScalaFX or more generally)

I have a file tileset.png containing a dozen 32*32 tiles. When my game starts, it generates the world randomly with the available tiles and the size of the world ...
8
votes
1answer
178 views

How can I procedurally find a wall that separates two or more points on a grid-based map?

I'm trying to generate walls that cut off a given point from other given points. The attached image shows the sort of thing I'm after: Blue separated from Red. Blue separated from Red and Yellow. ...
0
votes
1answer
167 views

Tiled - Possible to create a terrain from this specific tileset?

I'm really new to Tiled and I can't get the hang of creating terrains. I have these really nice 2D assets I would like to use but I can't get the terrains to work. I'm trying to create a dirt path ...
1
vote
2answers
506 views

Unity order issue with TilemapRenderer.Render

I'm using unity, with 2D Tilemaps (I'm doing something like an RPG) I want to have a Tile which should be rendered with a random sprite. When I use a tile like a tree that is bigger than the tile ...
3
votes
1answer
725 views

Unity: Player Gets Stuck Between Tiles

I am creating an endless game, which constantly spawns tiles. The problem is that after a few tiles the player gets stuck on random tile and stops moving. I noticed this problem even when i was ...
0
votes
1answer
90 views

Different z index within the same tile

When you are looking at this image: the player is standing behind the tree. I know that can be accomplished by drawing the background first the player second and the upper tree part after that. The ...
1
vote
1answer
274 views

Scene building for procedurally generated tile based world in Unity

i'm making a procedurally generated side-scrolling and destructible tile based world. So far I've got : - the values generator (for deciding which tile to place where) - a testing scene generating ...
2
votes
1answer
761 views

How can I get the specific tile in a collision with a Tilemap?

I am developing a simple platformer, I have three types of tiles right now: Floor: does nothing on collision. Bad: makes the player lose the game. Good: makes the player beat the game. I am trying ...
1
vote
1answer
228 views

Applying Perlin Noise to Tiles

Playing with some Documentation about Perlin Noise i managed to create this map: Nothing different from other Procedural Generated Maps. It is a HeightMap with colours at given heights. The problem ...
1
vote
1answer
500 views

Unity shaders - blend edges of tile textures stored in an atlas

I'm creating a tile based game. The tiles can have different textures. All the textures are loaded at startup and dynamically packed in a texture atlas (this is done to make modding easier). Each tile ...
0
votes
1answer
132 views

Random tile-based floor plan generation with enclosed rooms

I've been working on a project for a while which takes a grid of n*n tiles (starting at n=16 and with n increasing by 4 every so often for new floors), and fills it with rooms of random rectangular ...
0
votes
2answers
254 views

2d tile map render rotation math?

I am working on a personal project and am trying to make a 2d tile map render that needs to handle rotation. I am using raylib to handle the drawing stuff onto the screen and am using this function ...
0
votes
1answer
223 views

Why did sprites sometimes flicker or disappear in very old games? [closed]

I've recently been having a nostalgia run with very old video games such as Battletoads. There is one thing that these very old games seem to have in common: sprite flickering. What i mean by that is ...
0
votes
1answer
42 views

Partially transparent surface over opaque surface causes strange artifacts

I have a world with many unit square tiles, each made up of a 3d terrain chunk and a 2d water chunk (a square). Each chunk stretches from [0, 0] to [1, 1] (inclusive) in its tile space. This means ...
3
votes
0answers
83 views

How can I divide tile-based space into largest the possible squares?

I'm trying to find a way to take a tilemap like the top image and divide it into square spaces like the colored areas in the second image.
3
votes
1answer
166 views

How do I iterate over map tiles visible within a rectangular portion of an isometric view?

I have an isometric map broken up into terrain tiles. the area of the map on-screen is given by a rectangle rotated 45 degrees (in red below). Given the position of the corners of the visible ...
1
vote
1answer
698 views

Combinations for tiling two textures together

Hi I need to create seamless ground with grass and dirt. I can make two textures connect seamlessly one to another. My question is how to figure out all the combinations, like (left, top, bottom, left-...
3
votes
1answer
661 views

Isometric tiles drawing and picking - JAVA

I'm trying to draw isometric tiles in Java and implement a tile picking system using the mouse cursor. I draw the tiles using math formulas I found and adapted to my tile textures which you can find ...
0
votes
0answers
92 views

How to display a huge image in Unity 2D scene?

I need to display a huge image (big like earth) in a 2D scene, it is a PNG format image of real world map. I think like the other map APPs, the map image should be loaded and displayed tiles by ...
0
votes
1answer
114 views

Collision detection with isometric tiles stored in rectangular files

So I'm working with a player moving across a grid of isometric tiles. Each tile is stored in a .png file. I have a class that crops out BufferedImages from different sprite sheets and initializes them ...
1
vote
1answer
475 views

Phaser Always Fix Camera Position to Sprite

I am developing a cross-platform overhead game using Phaser. Is there a way to always fix the position of a camera to a sprite? The following function works great, but I want the camera to always be ...
1
vote
1answer
64 views

Visual Glitch When Drawing Rects

I have the following code: ...
4
votes
2answers
364 views

Controlling two events at once using RPG Maker MV

I am trying to make a doorway that is 2 tiles high. I have created an item called, Door Key. But I want both event tiles To hide or remove when I use the ...
1
vote
0answers
32 views

Why does my implementation of “is 2D point inside 2D polygon” have slightly different results on either side of the same axis?

My 2D game is tile-based, 16 pixels per tile. Colliders are defined by an array of points which determine a polygon. With debugging enabled (as it is in the photos) those colliders are outlined with ...
1
vote
0answers
69 views

Interaction between entity and tiles

In my game, I have a player, ennemies and tiles like Mario. And each entity has a different behavior when it touches a tile. For exemple, when my player walks on spike he dies. But a certain type of ...
1
vote
2answers
469 views

Texture appearing blurry

I've just created another scene in Tiled and imported it into Unity using Tiled2Unity and I'm having a strange issue, while the image looks crisp and as it should in Tiled, when imported into Unity it'...
3
votes
1answer
107 views

Need some insight on mesh triangulation and geodesic spheres

I am making a game that's going to use a Class 1 (This is (n,0)) Goldberg Polyhedron as the map, that is I'm planning on using the hexagons and 12 pentagons as tiles for a tile-based game. When it ...
0
votes
1answer
212 views

Can you achieve a non-square look with tiles or a similar technique?

Just to explain the kind of look that is refered to in the question, it is apparent in the game Toejam and Earl 2. Not asking how this was made but would like to know how you could efficiently blit a ...
8
votes
2answers
2k views

Drawing huge amount of tiles in Monogame (XNA) efficiently

I'm asking this question because I haven't found a definitive answer to it. Let me first of all state a few things about the game and what I have already done. The game is a going to be a RTS set in ...
1
vote
1answer
308 views

TiledMap taking a lot of time to load in libgdx

I am developing a game using libGdx in which a level has 2400 * 450 tiles Map and each tile is of 4 pixels. I am also using box2d...
2
votes
3answers
207 views

Use tilesets or a complete image?

Whats the advantage of using tilesets instead of importing the entire image itself ? Is it giving us some sort of advantage (in terms of memory maybe) ? Also, how much of a disadvantage would it be to ...
1
vote
1answer
205 views

How to cache tile map?

I am trying to write a strategy game with PHP, and basically I have a 1d based tile map (grass, dirt, sand, castles, etc.) stored in a database. Now where is 40k records, from x1y1 to x200y200 and I ...
0
votes
1answer
71 views

Why am I getting white lines in my tiled map when my character moves?

I followed the tutorial here - http://mainroach.blogspot.com/2013/02/fast-html5-canvas-rendering-tiled-maps.html I can't really figure out why it's happening. At certain times the map looks fine and ...