S
Stancho
Guest
hello.
So. i'm using depth = -y to make the effect of going behind trees.
My tree is:
draw_spire(shadow)
draw_self()
so the shadow is under the tree.
But when my hero goes behind the tree (depth = -y goes into effect), the tree shadow shows on top of the hero. when the hero is in front of the tree, the tree shadow is under the hero as it was meant to be.
Is there a way to make the tree shadow always under the player without making 2 different objects for the tree and the shadow?
Thank you!
So. i'm using depth = -y to make the effect of going behind trees.
My tree is:
draw_spire(shadow)
draw_self()
so the shadow is under the tree.
But when my hero goes behind the tree (depth = -y goes into effect), the tree shadow shows on top of the hero. when the hero is in front of the tree, the tree shadow is under the hero as it was meant to be.
Is there a way to make the tree shadow always under the player without making 2 different objects for the tree and the shadow?
Thank you!