August 23, 2015, 9:25am
i think the trans
lucency order is good at platform 2d games…
im not sure with mine… i think i did something wrong here…
or maybe i really did these the wrong way…
(top 3 guy group)
the top part is what happened.
the top guy is supposed to go behind the middle guy
but when the top guy is near the third guy, everything is okay…
(bottom 3 guy group)
trying to achieve something like these
in my topdown project…
z is the height (as you can see in the image below)
so all the crews have 150 as their “z”
x and y change depending on their location in the map…
the “crew” 2d actors
walk around the area in a 4 direction way…
and pass through other actors
im thinking of trying to change the z order of each actor depending on their Y number
a higher Y number gives a higher Z order…
so they can change simultaneously depending if the other actor is suppose to be in front or behind them…
ive also tried playign with the project settings render translucency sort policy
but, im not sure if i did it right…
August 23, 2015, 11:26am
actually, that video was made by kitatus because of my other previous question on zorder… im yanzco. dot dot*
but for some reason, it doesnt work with what im doing…
So I just tested this issue and am not receiving any irregular results. As a note, be sure all of the materials are translucent, or translucency sorting will not have an effect.
To verify you are doing this correctly, start a new Paper 2D Blueprint Project in 4.8.3. Click on the background in the default level that is loaded. In the ‘Materials’ section, give it the ‘TranslucentUnlitSpriteMaterial’ which can be found by enabling the ‘Show Plugin Content’.
Unlit Sprite Material - Background_Sprite
Put this same material on the ledge sprites as well.
Now, set the ‘Translucency Sorting Priority’ of your background to -1.0, and then set the priority of the ledges to -2.0.
You should almost instantly see the ledges disappear behind the background.
Let me know if you do not get these results!
August 25, 2015, 3:52am
got it to work now… they were just not set to translucent material…
But what if they have the same y? any way to change order?
i mean if both order priority 3 and both with the same Y met, how would they decide which will be rendered on top first?
Glad to hear you managed to get it working!
This is based on the rendering side of the translucency within the material
August 25, 2015, 7:20am
i got it to work a bit, i think… some part works, some doesnt…
here’s a copy of what ive been experimenting…
MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.