• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Windows Depth Not Working Correctly

S

Shawnowstin

Guest
My character won't stay behind the fence, i'm new to coding, and i'm having trouble fixing the code i'm using to allow him to stay behind the fence even when attacking...
upload_2017-4-2_13-46-9.png
 

obscene

Member
Should your sprite height be a factor in depth calculations at all? Looks like your attack down sprite is significantly taller than the other sprites, and when you add it to the equation your depth is lowered.
 
Top