Skip to main content
gamedev.net
🔒 Locked

Draw Order

Started by JoHnOnIzEr Jan 20, 2004 at 3:01 PM 4 replies 800+ views
Original Post
JoHnOnIzEr
JoHnOnIzEr
I''m not too sure how to go about this in VB6. I don''t really know how to order all of my players, NPCs, and other objects so that they dont overlap when being drawn. I need some help on this subject and i appreciate any help that i get.
Sidra Headquarters
Game engine is currently at version 0.9.8! Currently Down
wicked_wesley
wicked_wesley
I''m not really sure about this, but it might help, I heard that you have to order on the z axis (z=x+y). I think Josh said that

Alot of topics have been made about this, so use the search button

Good luck
Wesley
Have a nice dayWesley
Alan Kemp
Alan Kemp
Assuming you are talking about a 2d, grid based view, sort your objects by their y-coordinate so the higher up the screen they are, the earlier they get drawn.

Alan
"There will come a time when you believe everything is finished. That will be the beginning." -Louis L'Amour
Polydone
Polydone
What kind of language is that? No wonder you''re posting as anonymous - screen coordinates and world coordinates are not the same since the world is rotated.

***
For Java games and Java related resources, go to http://www.javaengines.dk
***

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.