I've seen a few old threads but no really basic or elegant solutions to Z-ordering in isometric games, so I figured I'd post what I came up with. Pardon if this is old news.
Anyways, here's your event right here:
<img src="http://i292.photobucket.com/albums/mm17/CookingwithMike/x1s/IsoZOrder_zps2de9d0be.png" border="0" />
Works great as long as origin points are consistent (bottom, ideally).
Develop games in your browser. Powerful, performant & highly capable.
Nice one thanks Mike! I couldn't find a decent simple example that worked consistently, but this does the job <img src="smileys/smiley1.gif" border="0" align="middle" />
Yeah looks quite nice. Thanks!
Thx for this tutorial. Now i can create isometric games. I think, now i have only visual problems, everything is so limited in 2D.
could someone open this up for me, what does it actually do?
It sorts the order the sprites are drawn so the ones higher on the screen are behind the ones lower.