L
Leafi
Guest
EDIT: RESOLVED!
Resolved this issue by instead of setting depth in the draw event, setting it in the step event.
Hey there,
I have recently been playing around with a project that uses the old depth=-y; trick, however there is a problem.
So, to set the scene we have a player character who's depth is always depth=-y. We also have a piece of equipment whose depth is the players depth-1 (and is drawn ontop of the player).
When moving down, this causes the player to 'disappear'. He still exists, but is completely invisible when moving down, but visible when moving in any other direction. The equipment always remains visible. (The player becomes visible after no longer moving down.)
When passing through other stationary objects who upon creation depth=-y, the stationary object becomes invisible for one frame.
To make matters even more confusing, if the equipments depth is set at player.depth-3, when moving down the player becomes transparent. (again, becoming totally visible once movement has stopped.)
Even more confusinger..! Is that if the equipments depth is player.depth-10, the player no longer becomes invisible when moving down, but still makes stationary objects go invisible for a frame when passing through them (in a downwards direction).
I have absolutely no idea how to fix this problem?! Any takers who can shed some light on this?
Resolved this issue by instead of setting depth in the draw event, setting it in the step event.
Hey there,
I have recently been playing around with a project that uses the old depth=-y; trick, however there is a problem.
So, to set the scene we have a player character who's depth is always depth=-y. We also have a piece of equipment whose depth is the players depth-1 (and is drawn ontop of the player).
When moving down, this causes the player to 'disappear'. He still exists, but is completely invisible when moving down, but visible when moving in any other direction. The equipment always remains visible. (The player becomes visible after no longer moving down.)
When passing through other stationary objects who upon creation depth=-y, the stationary object becomes invisible for one frame.
To make matters even more confusing, if the equipments depth is set at player.depth-3, when moving down the player becomes transparent. (again, becoming totally visible once movement has stopped.)
Even more confusinger..! Is that if the equipments depth is player.depth-10, the player no longer becomes invisible when moving down, but still makes stationary objects go invisible for a frame when passing through them (in a downwards direction).
I have absolutely no idea how to fix this problem?! Any takers who can shed some light on this?
Last edited by a moderator: