Results 1 to 6 of 6

Thread: [RESOLVED] [Dx7] Z ordering (Am I going insane?)

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member singularis's Avatar
    Join Date
    Nov 2006
    Location
    Over There!
    Posts
    372

    Resolved [RESOLVED] [Dx7] Z ordering (Am I going insane?)

    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
    Attached Files Attached Files
    If what I said was helpful, give me rep!

    My Complete Games: -- 2D Zone (Space Shooter game) || _2D Zone 2_ || Ninja Blob (2D platformer) || Dren (Co-op up to 4 player base defence game)

    My Projects: -- The Dread Engine (2D VB game Engine) || A* Path Finding


    An excellent site for learning DirectX7, 8 & 9 (for VB6, C# & VB.net) would be: directx4vb.vbgamer.com --- For my projects and games see: pieper.freehostia.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width