Skip to main content
GameDev.net gamedev.net
🔒 Locked

Sprites on a tile based map.

Started by Moquan Jun 4, 2004 at 3:04 PM 0 replies 300+ views
Original Post
Moquan
Moquan
I''m working with an iso-tile based engine. Everything seems to be going to plan, but in thinking about future problems, I have this main one: I want my sprites, which are soldiers and such, to be able to have free movement (not tile based) on the land. How should I keep track of which soldiers are infront of who? I understand about drawing my terrain from front to back, but the soldier are a little trickier since they can swap who is further infront and who is further behind each other. Please help! -Moquan
Moquan
thedevdan
thedevdan
Well, sort them by Y-value on the screen. Those that are "higher" on the screen are farther back.
Not giving is not stealing.

Topic Locked

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

Sign in to reply to this topic.