Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

XNA 2D z FIGHTING HELP

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
62 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 15, 2011

How do i fix this i have list sorting via the z plane like this:

entityList.Sort( delegate(CEntity e1, CEntity e2) { if(e1 != null && e2 != null){ float z1 = e1.GetZ(); float z2 = e2.GetZ(); return z1.CompareTo(z2); } if(e1 == null && e2 == null){ return 0; } if(e1 != null){ return -1; } return 1; } );

Category:

Entertainment

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (2)

Sign In or Sign Up now to post a comment!
  • Post your code somewhere and I'll take a look.

  • Sort by the Bottom edges of the bounding boxes.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more