So i making a hand drawn RPG and i cant find a good answer how to set overlaying sprites.
So the background is an 1920-1080 pix picture and i cut out the things ( trees, objects etc…) to a transparent PNG, and then i put them back to their original place on the background. There are two methods i using for the depth. Its a different number on the Z position for the camera,background and char or in my other game project , they are simply on a different sorting layer.
Can anybody tells me how to make them work like,: they are on top of the character when you are behind them but of course its the other way when you walk down and your char is lower on the screen.
Can you post a screenshot of what you’re trying to accomplish? It sounds to me like you need to monitor the characters Y coordinate and change the sorting layer dynamically.
of course
so as you can see, at the left he stands in front of the tree while at the right he stands behind.
is there a very easy solution for this? not just because im a noob but i have to make tons of overlays like this later, so i would be very happy if there would be a simple method for set all of them.I mean, if i have to re-type some x-y coordinates in a script for every overlay picture that’s fine but if there is a more simple way, that would be perfect.