youvsvirus / youvsvirus-unity

Unity version of the you vs virus game.
GNU General Public License v3.0
1 stars 1 forks source link

Signs sometimes overlap weirdly #132

Closed maccxs closed 4 years ago

maccxs commented 4 years ago

grafik I do not really know how this can be resolved. Do you have an idea, @holke ?

holke commented 4 years ago

Looks to me like a layer problem. If two objects are in the same render layer, they can get mixed up, because the order in which they are added to the screen is arbitrary. This order can even change from frame to frame and thus result in flickering (i did not see this with the signs, just saying it can happen). I guess the only way to avoid it is to assign different signs to different render layers.

maccxs commented 4 years ago

Thank you that was a good idea. I now adapted the picture of the hand so it can have the same layer as the npc and the sign. They are now not in different layers, but all NPCs with a sing live in the same layer but get assigend a different sorting order in the layer.