Isometric Depth Code, Depth = -y, !Working

F

FunkyB

Guest
Hi, I'm working on the May Jam and I'm having a problem. I am using depth = -y in the Step Event of every object. When I run the game, and move the player lower than the enemy (giving him a higher Y and therefore a lower depth), he should show in front of that enemy but he doesn't. It's not an origin problem.

Any ideas? Thanks for reading.
 

mar_cuz

Member
My only thought was if you were using physics to put phy_position_y in place of y. The way you are using the code is right as I do the same thing and as long as the sprite origins are at the feet or bottom of objects, depth = -y works. Are you using gms 1 or 2?
 
Top