Archived

This topic is now archived and is closed to further replies.

2d engine z-buffer problem

This topic is 5277 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm making a 2d-game. The gfx are like the most 2d-rpg (not a top view) And I have a overlapping problem. Here's a truck for example. A nice one :-) _/----------/ /----------/|----/ |----------|----/| |----------|----|| |-O------O-|-O--|/ If I want to draw a perso and if it's have a greater y than the truck, I have to draw the perso AFTER the truck( so the perso overlaps the truck). If the y is not greater, I have to draw the perso BEFORE the truck. It's a Z-buffer like problem. My question: what's the best way to handle this ? Thanks [edited by - FatalError on August 6, 2003 6:11:55 AM] [edited by - FatalError on August 6, 2003 6:13:15 AM] [edited by - FatalError on August 6, 2003 6:13:37 AM] [edited by - FatalError on August 6, 2003 6:14:20 AM]

Share this post


Link to post
Share on other sites