I have an unique problem. It seems I cannot Z order things properly with directdraw. I am using my own sorting algorithm to find in which order to draw the players in but they always seem to do strange things.
When player1 (Thing(0)) is above player2 (thing(1)), player1 seems to always be behind things and if player1 is below player2, player1 seems to always be in front of things?
My code is attached and works fine with one player but not with two players
Can anyone help me?![]()
Controls:
Player1: W = Up , S = Down, A = Left, D = Right
Player2: Uparrow = Up,Leftarrow = left, Rightarrow = right, Downarrow = down




Reply With Quote