Stack Exchange Network

Stack Exchange network consists of 174 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 [tile]

The tag has no usage guidance.

0
votes
0answers
56 views

Stop Animated Tile from looping Unity2D C#

I am using the animated Tile script and starting the animation when I need it, by replacing a static tile with an animated one. Currently on collision with the player, however, I need the animation to ...
0
votes
1answer
47 views

Unity3D Hex Grid neighbor search with radius

I am trying to develop a small Game with a Hex Grid. I need to find the Neighbors of one Hex Tile in a specific radius. Here is a screenshot of my Problem: Screenshot I followed this awesome ...
1
vote
2answers
70 views

How do i retrieve individual Tile Information from a tilebased procedural World fast?

I am concerned about performance with my current setup; as I want to expand on it i need to figure out if I might need to change it. Current Setup: The Game/Prototype is similar to Dwarf Fortress or ...
2
votes
1answer
791 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 (...
4
votes
1answer
55 views

Navigate multiple Units on a grid through a tight space with different directions

I just started learning about pathfinding algorithms. Assume we have this scenario: Blue and Green can move only on those tiles. They can also talk to each other. Blue wants to go through the tunnel ...
0
votes
2answers
541 views

How do you use these kind of rpg ground tileset ?

Searching about some tilesets for a little RPG game, I've often found these kind of tileset : Their structure are special, there is two upper tile and 4 others for the same material. I understand ...
1
vote
0answers
71 views

How to generate tile based natural looking map?

I have a tile based map which I generate using interpolation of pixels on a reference bitmap into appropriate tiles depending on the color of the pixel. I'm trying to make the output look natural in ...
1
vote
2answers
173 views

Tile-based board game collision mechanism algorithm

I am looking to see ideas for an algorithm which will handle collisions for some battle-ship tile-based board game. A little about the game The game is pretty simple. Basically there is a board, ...
2
votes
3answers
415 views

Array-based tilemaps and bounding box (aabb?), how to do efficient tile collisions?

At one point in my game I had every tile as it's own object, so that I could use standard AABB collision testing easily. I later realized this was horrible for performance and simply made my tiles be ...
1
vote
0answers
102 views

How do I calculate the visible area of a big isometric map? [duplicate]

I have a simple isometric map of 128px x 128px, tile in a 2D field [xxxx][xxxx] I have a problem with my calculating. I need to get startx:[0], startY[0] and ...
1
vote
2answers
430 views

Rendering model with multiple tiling textures

See edit: How would I go about rendering a model with multiple tiling textures? I have a few ideas, but all of them have drawbacks, here are a few (by the way this is for an opengl game): -Use a ...
4
votes
1answer
362 views

2D Tile Engine Architecture

I'm been working on a 2D tile game (sidescroller perspective) and I decided to rework my tile engine. Right now I store a new tile instance per block in the world (so there are like 1000 TileStone ...
-1
votes
2answers
2k views

Make a 2D tile map from isometric tile

So I have an isometric tile ( PNG ) and I was wondering how can I make a 2d tile map from it. I am using Unity.
0
votes
2answers
163 views

Efficient Storage of Objects in a 2D Grid

When trying to store data related to objects in my 2d top-down tile based game (specifically, blocks), I realized that I don't have an efficient solution to storing them. I could have, for example, a ...
1
vote
1answer
831 views

How do you do tile-based movement in Phaser?

I'm looking to make 2D game that is very similar in movement to Pokemon Red or Blue (player must move a full tile in any direction, the ground moves smoothly beneath the player as they walk). I've got ...
2
votes
0answers
173 views

Find all tiles by ID in layer

In phaser 2.6.2, is there a way to retrieve all tiles given their ID from a TilemapLayer? The method searchTileIndex on Tilemap ...
0
votes
1answer
107 views

How would I determine whether or not to render the player over or behind a tree in a 2d top down game? [duplicate]

In games like Factorio, you might notice that when the player is at a certain coordinate relative to the tree, it renders in front of the player, thereby giving the effect that the player is behind ...
0
votes
1answer
168 views

How do you save the rendering of a tiled map to an image?

Im currently using LibGDX and drawing a tiledmap with the OrthogonalTiledMapRenderer. Is there a way to save one rendering and put it into some file as an image? If you know of a method that doesnt ...
1
vote
1answer
91 views

Create Full Tile Map Zone in an Art Software, then generate corresponding tile name list?

I'm completely new to tile map creation. I'm a programmer and I'd like to make life easier for myself. It's a bit long to explain the problem I think I have, but bear with me. The Scenario: From ...
1
vote
2answers
130 views

Add and remove tiles? Or better to have them all loaded off screen?

Which method do you expect would have better performance when stressed? It's a 2D tile map where the camera has view of a small portion of the map. As I pan up/down/left/right, should I be adding ...
1
vote
1answer
79 views

How to iterate tiles around an index tile?

I am not exactly sure how to state this question, what I basically want to do is to seed a tile based map with some values. So I asked myself how I could spread some values outgoing from a start tile, ...
2
votes
0answers
244 views

How to go about implementing pathfinding in Unity with Tiled2Unity map prefabs?

I have created a map using Tiled application and have added collision boxes and used Tiled2Unity to import the map to Unity. The collisions are working with key ...
2
votes
0answers
96 views

LibGDX TexturePacker line problem

I'm trying to use a TextureAtlas for all my textures for better performance. Every time my game starts all my tiles are packed into one texture atlas. I have put following code into my DesktopLauncher ...
8
votes
5answers
1k views

How can I implement smooth tile-based lighting?

I have been working on a 2D tile game and I have implemented hard-edged lighting: I want it to be smoothed out a bit. I don't need shadows or anything, just simple lighting. I'd like it to look more ...
1
vote
2answers
48 views

Best way of approach? Mob moving around a section of tiles

Think the beginning stages of Metroid, where there would be a turtle-like mob that would move around a section of tiles, normally 1-3 in a line. What would be the best approach to accomplish this ...
1
vote
2answers
70 views

Algorithm for spacing points out among a line

I'm writing an angled tile system, and my implementation is to have a starting height and an ending height inside the tile. Like so: The starting and ending height allow me to get the length of the ...
4
votes
2answers
290 views

Unity - Check if sprite is within range around player

I need to know if a sprite is within range (circle or square doesn't matter) around the player. If the sprite is, let's say, 100 blocks away from the player, I will disable it. This wouldn't be too ...
1
vote
3answers
227 views

C++ Platformer Collision

This is very simple, but I have spent nearly 6 months messing with this and it is always messed up. This is a tile platformer, everything is "normal", x and y correspond to tile. Tiles are 32 x 32 ...
-2
votes
1answer
466 views

What tile storage method is best for tile-based game?

I am making a simple tile based game. The tiles are Ground and Wall. The entities (dynamic objects) are Box and Player. I am storing tiles as 2d array of enum variables and both Box and Player has own ...
3
votes
1answer
88 views

Determine if set of connected tiles can fit inside grid

Feel free to edit the title; I had a hard time figuring out how to explain it in a single line. Here goes. I'm trying to generate these grids automatically, and randomly. I have a grid of 25 tiles (...
1
vote
2answers
47 views

Tile tilemapping render error

I'm having rendering issues in Tiled with a border tile I'm applying to shapes. In Tiled: In game: I'm using Tile Flipping to reduce work. I thought this may be the issue, so I tested out a few ...
2
votes
1answer
253 views

How would i go about implementing portals into my game?

I don't mean to ask a broad question, so let me explain. I'm creating a 2D top-down design game and I'd like to implement "portals" to be able to switch between worlds. Each world is a level class, ...
3
votes
1answer
70 views

Store and retrieve different objects on a tile

(I hope the title is clear enough, if not feel free to suggest a better one) I'm trying to make a simple tile-based map for a college project in Java. But I'm stuck on how to literally place things ...
1
vote
0answers
28 views

Getting a TOISolver ArrayIndexOutOfBoundsException creating a tile based game

I've been making a tile-based game on java using jBox2D.For adding tiles to physical world I use static bodies which are stored in updating ArrayList(i use PhysicBlock class as a wrapper). Whenever I ...
1
vote
1answer
535 views

1D Terrain Generation in Java

Not able to implement Perlin Noise for 1D Random Terrain Generation. I've tried everywhere and I cannot find anything useful, sure I sort of understand Perlin Noise but everytime I try it nothing ...
2
votes
1answer
243 views

Tiled - move all tiles

I'm making a map in Tiled. I quickly ran out of room in the north of my map and would like to "shift" the tiles down. I'd prefer not to have to redo each of the tile layers. Is this possible? This ...
2
votes
1answer
140 views

Adventure Games - When and how to start mapping?

I've created a playable oblique-styled adventure game in HTML5, using Tiled for tilemapping. I have a storyline set up, and am ready to make my final draft map. The game world will be loosely based ...
0
votes
1answer
602 views

How to only render whats on screen (Tilemap, Java2D)

I have some problems with my rendering of a 2Dimensional Map. ...
-1
votes
1answer
194 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 ...
1
vote
2answers
927 views

Tilesets - how to make the pink color appear transparent

recently I searched for some free to use Tilesets on the internet. And wherever I found a sheet of sprites there is this pink color in the background. i know that all the spots having that color ...
1
vote
2answers
454 views

LibGdx - How can I correctly handle tile transitions / connected textures?

So I am making a tiled game and I need to connect textures correctly based on whats next to it. With tiles that had connection really close to the edge of the tile I could just use the 4 bit meathod ...
3
votes
3answers
950 views

Strategy game tile and unit storage

I've recently started working on a turn based strategy game much like games from the Fire Emblem or Final Fantasy Tactics series. However, I'm running into a few problems concerning the storage of the ...
0
votes
1answer
279 views

The camera in a 2D tile based side scroller is moving slower than the player [closed]

In my 2D tile based side scroller, I want a camera that scrolls in the x direction, but not in the y direction. The world is separated into three zones; one on the left and one on the right where the ...
1
vote
1answer
539 views

XNA renderTarget, how to convert mouse coordinates to world position when upscaling

I'm currently developing a monogame game with a tile engine. I have been experimenting with different tiles and sprites sizes : 16px, 32px, 64px I have settled for 32x32 pixels tiles rendered at a ...
0
votes
2answers
696 views

How do I raycast to detect which hexagonal tile was clicked?

I want to detect the hexagonal tile a unit is on upon clicking on the unit. I was thinking of using a ray cast I can't get it to work. I'm trying to get the raycast to shoot from the bottom of the ...
0
votes
0answers
392 views

Changing a single component of a prefab?

I'm working on a unity project and I'm looking to show the range of a certain character. However, the terrain is generated through a script at run time, and considering that the script uses the same ...
0
votes
2answers
2k views

How do i initialize and use a Texture Array? LibGDX

First of all, I am new to Java and LibGDX.. What I am trying to do is Load my texture images into an array so that I can reference them in my drawing code by number, rather than by name. I am drawing ...
2
votes
1answer
1k views

Processing move between tiles with an animation in isometric map

In my isometric map, entities can only be in the center of the floor tile. So it's tile per position. This is my map with an entity: img http://gyazo.com/84793c7713734fc6806fd2b7832de8b9.png Entity ...
0
votes
2answers
668 views

2D Tile Collision free movement

I'm coding a 3D game for a project using OpenGL and I'm trying to do tile collision on a surface. The surface plane is split into a grid of 64x64 pixels and I can simply check if the (x,y) tile is ...
0
votes
1answer
2k views

How do I efficiently display image tiles in Unity 4.3 free

I previously wrote a TileEngine with SFML that I would like to port to Unity3D 4.3, but have not found a way to draw a tile on the screen programmatically in Unity. All I am looking for something ...