Skip to main content

Questions tagged [layers]

Filter by
Sorted by
Tagged with
0 votes
0 answers
121 views

I'm attempting to play an animation from different layers but having some difficulty. I'm trying to play animation transitions in one layer and then go back to the base layer to play an animation ...
wrappingduke's user avatar
1 vote
1 answer
2k views

I have a tilemap in Godot 4.1 and I have defined a physics layer for a tileset, but I cannot figure out how to disable a layer in collision mask in code. I already found out that I should get tileset ...
Adonia Kazemzadeh's user avatar
2 votes
1 answer
310 views

GOAL I am making a top-down tile-based sandbox game, and it will have 400 layers of destroyable terrain, It will not use chunks, it will store the map in memory like Terraria, but only render the ...
Macho Onion's user avatar
0 votes
0 answers
189 views

I have a layer rendering issue, where the top layer of content will sometimes not render to screen as it appears that the bottom layer is rendering on top (even though it's behind in world space). It ...
A__'s user avatar
  • 163
0 votes
0 answers
156 views

I need advanced blitting options in my game. It's a 2D game that has trees' sprites along with the player's sprite. I want that every tree sprite to be displayed either in front of or behind the ...
Salem's user avatar
  • 226
0 votes
1 answer
131 views

How do I make the non-sprite (BasicSpellProjectile) render in front of the sprite (Tower 2)? Note: The camera is located at z=-10. The z positioning apparently ...
Sebastian Nielsen's user avatar
0 votes
1 answer
2k views

I am having problems with layers detection using raycasts. Context: I created a grid to use in a pathfinding algorithm on a 2D plane. I want to implement now different weights according to the layer ...
FSic's user avatar
  • 188
0 votes
0 answers
559 views

I'm trying to rearrange my layers in Unity but I can't seem to drag them. When I try to do this I'm in edit layers under the heading sorting layers and I click on the = symbol and try to drag it but ...
Sarah Buist's user avatar
1 vote
1 answer
2k views

I'm Using Unity 2018.3.11f1 and I'm going crazy trying to understand why the "use triggers" variable of the ContactFilter2D is not having any effect and I'm always detecting only the non-trigger ...
Guillem Poy's user avatar
1 vote
0 answers
777 views

I have a Player game object with a sprite renderer and a line renderer. The sprite for its body and the line for a rope. The problem is that the rope isn't visible (I can see it's drawn in the scene ...
Daniel Marques's user avatar
0 votes
2 answers
125 views

so I have two sprites, a box and an X animation (I'm making Tic-Tac-Toe). So, in the code, when I click on the box, it instantiates the X animation at the right place. The X animation does not have a ...
CyanCoding's user avatar
1 vote
2 answers
972 views

I have been struggling with an issue for a couple of days now trying to get depth sorting properly when using multiple layers in tiled. My tiled map is set up as follows: The sorting Layers I have in ...
WraithNath's user avatar
3 votes
2 answers
3k views

In Unity3D, and others, there are Layer Based Collision System which makes collisions only happen between specified Layers. It defaults to all layers colliding with all others. Does making use of ...
Jethro's user avatar
  • 309
0 votes
1 answer
4k views

I have a LineRenderer that ignores certain Layers based on a Raycast using LayerMask. I have ...
Ḟḹáḿíṅḡ Ⱬỏḿƀíé's user avatar
0 votes
3 answers
6k views

I have two sprites. One for the entire background and another small sprite, which is a foreground object. I have written code for both of these objects in their ...
Anish Sharma's user avatar
0 votes
0 answers
281 views

I have 3 layers of objects in a game that I am working on. The layers are the "map" layer (Background), "UI" layer (Labels, etc), and the "Object" layer (Movable objects). I am working on a 2-D game, ...
PearsonArtPhoto's user avatar
0 votes
1 answer
417 views

Please refer the image below to understand. I am working on 2D game. I have three elements: "background(layer 0), foreground(layer 1) and the object". I have used sprite renderer to set background ...
user5185619's user avatar
2 votes
1 answer
277 views

In the simple platform game I'm making, when player collects coin, its cell is set to null. Is it possible to recover all cells from layer "coins" after player dies?...
urban07's user avatar
  • 23
0 votes
4 answers
1k views

We're developing an isometric game that so far has had a single ground level (y = 0) for the avatar to walk on. Pathfinding for this can be solved with a relatively simple 2D AStar tile map. We're ...
Jimmy Xu's user avatar
  • 101
8 votes
1 answer
1k views

I think there is a difference between the CCLayer and CCNode behavior when I change their AnchorPoint. I will describe what I mean and please somebody explain it. Scenario: I start with ...
Emadpres's user avatar
  • 940
0 votes
1 answer
729 views

For a current unity project I need a layered map like in Dwarf Fortress. The game will take place in a 3D city enviroment and the camera should be 'snapped' to layers. So there will be (for example) a ...
floAr's user avatar
  • 995