Legacy GM how should I stop updating player depth when it's moving

CROmartin

Member
Put in step even depth = 0 then place_meeting(x,y,some_object) {depth = how much you want}, this code will make depth = 0 until he colide with other object , I hope I helped you and didnt missunderstand you.
 
B

begjan

Guest
@CROmartin I use depth=-y; to make player object go behind if little bit behind a enemy or building. Depth=0; makes it work but if player place meeting with building then it's go under building. My game is 2D top down game. Like isometric games.
 

CROmartin

Member
I use depth=-y; to make player object go behind if little bit behind a enemy or building. Depth=0; makes it work but if player place meeting with building then it's go under building. My game is 2D top down game. Like isometric games.
Screen shots of how problem happens would be helpfull. That happens probaly bcs building y isnt in wright spot.
 
Top