Skip to main content

Questions tagged [layers]

Filter by
Sorted by
Tagged with
0 votes
0 answers
127 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
0 votes
0 answers
162 views

I'm using Camera.cullingMask to only render objects that belong to specific layers. However, I can't figure out how to render two different layers on the same frame and store them in separate render ...
Nikhil Nair'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
1 vote
0 answers
50 views

Consider the below images get from the Final Fantasy VII and Alone In The Dark games: I assume that the above scenes are composed by a set of layers composing the background image (allowing thus the ...
Jean-Milost Reymond's user avatar
2 votes
1 answer
311 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
52 views

I read from the book that 0 - 7 layers are reserved layers in Unity but when I open layers on Unity its showing me that I can use layer-03, 6 and 7 and so on. So can I say that only 5 layers are ...
AHF's user avatar
  • 101
0 votes
0 answers
193 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
1 answer
306 views

I'm trying to decide how granular to be with my layers. I assume there's some spatial indexing going on, but... Does Unity do work for every pair of objects on compatible layers? Will Unity do some ...
pixelpax's user avatar
  • 143
0 votes
0 answers
157 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
1 vote
2 answers
401 views

I have a physical simulation on the streets of a city. The simulation is 2D but in a few points it could develop on multiple "layers": for instance bridges or underground tunnels. I may have ...
Blue Nebula's user avatar
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
2 answers
2k views

I am Lerping the Near value of my camera, from 0 to 38, and it gives this result: change near clip plane effect As you see, it gives a nice effect. But now I would like the effect to occur only for ...
Ugo Hed's user avatar
  • 281
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
29 views

I'm new to using Unity (2019.30a2) and am currently learning by watching Brackey's (youtube) "How to make a 2D Game in Unity" At 6:58 he is able to rearrange his layers easily. On my hand, I can ...
user9681559's user avatar
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
0 votes
1 answer
319 views

Since yesterday I got a bit into game development with Unity (i've never done game development before), and I am currently making a small 2D game. I am attempting to rearrange the various layers in ...
ImJustACowLol'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
0 votes
1 answer
316 views

I have the following setup: MainCamera render everything except ImageTurret layer. TurretCamera render only ImageTurret layer on a RawImage My problem is: MainCamera render everything and ...
Dares's user avatar
  • 9
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
1 answer
237 views

I'm busy with my full blown project in unity, it's a 2D game as I thought this would make a good starting point. So to the problem, I've got 3 elements in the game. The ground, an object and a beam. ...
Demonic218's user avatar
0 votes
2 answers
126 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
0 votes
1 answer
4k views

I have few prefabs with sprites which I want to assign to different sorting layers. How can I do it? I am also wondering if sorting layers matter if I use a perspective camera. Do they?
Random generalist's user avatar
1 vote
2 answers
974 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
0 votes
2 answers
130 views

I'm making a simple platformer in Adobe Animate, and I need the player to be layered in front of the stage because of a gimmick in the game. Unfortunately, whenever I change the layering order, it ...
user111981'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
0 answers
747 views

I have three different layers in which my scene is organized, meaning I can place different entities in different layers. The layers are rendered in order, let's call them LAYER_1, LAYER_2, and ...
Pateman's user avatar
  • 180
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
1 vote
1 answer
5k views

I'm trying to fake a DOF effect for Sprites by using 2 cameras, one for the sharp objects, one for the blurred ones. I have set up the layers like Blur and Sharp accordingly. So I have these 2 ...
agiro's user avatar
  • 269
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
1 vote
1 answer
589 views

I am making a 3D twin stick shooter in Unity and this is a question I need to have answered while I am still in early development. The map my player is in will have very tall buildings that will ...
Doctor Win'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
1k views

While following a tutorial with LibGDX, I am working with tile maps. This is the method that I'm using: tilemap.getLayers().get("Collision Layer"); or ...
PlatyPi's user avatar
  • 102
0 votes
1 answer
418 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
0 votes
1 answer
641 views

In a game a group of friends and I are working on using XNA, we wanted to create an effect where we could darken the screen and draw something else on top of the darkened portion. For example, we have ...
user3002473's user avatar
2 votes
1 answer
279 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
0 answers
109 views

Alright, so I have a video loaded, and other game content. Earlier this morning, when I was just learning how to actually play a video, I magically happened to get the video running in the background,...
Zee's user avatar
  • 922
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
3 votes
1 answer
1k views

I'm sure this is down to my lack of understanding of the unity physics system. I'm trying to implement a simple one-way platform for a 2d game and have got stuck on creating a reliable way to let the ...
mallardz's user avatar
  • 133
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
2 votes
1 answer
1k views

I have a character and I would like to animate a walking animation for it. However i get the following result when I animate it: (ignore the green lines/ markers/ sound) As you can see the foot ...
user1814893's user avatar
0 votes
1 answer
731 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