# Isometric tile game (swapdepths problems?)

**URL:** <https://forum.kirupa.com/t/isometric-tile-game-swapdepths-problems/99486>\
**Category:** Uncategorized\
**Created:** [January 19, 2004, 8:59am UTC](https://forum.kirupa.com/t/isometric-tile-game-swapdepths-problems/99486 "2004-01-19T08:59:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![littlered](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@littlered](https://forum.kirupa.com/u/littlered)\
**Post date:** [January 19, 2004, 8:59am UTC](https://forum.kirupa.com/t/isometric-tile-game-swapdepths-problems/99486/1 "2004-01-19T08:59:06Z")

</div>

hi there,

I’m trying to create an isometric tile game engine, and everything was going well as long as the hero moved a whole tile at a time. I’ve now added code in to make the hero move more smoothly, but the depthswapping is wrong (until you move fully onto a new tile, and then it’s corrected)  
there’s also a weird bug where if you scroll around the map fully a couple of times, then occassional tiles start disappearing, and whole lines get left in odd places on the screen.

would anyone be kind enough to take a quick look and see if they can see where I’m going wrong? - any help would be greatly appreciated.

there’s an example of the swf here:  
[http://www.salmacis.co.uk/isometry/trials.html](http://www.salmacis.co.uk/isometry/trials.html)

and a zipped Flash 5 file (hopefully commented sufficiently!) here:  
[http://www.salmacis.co.uk/isometry/trials.zip](http://www.salmacis.co.uk/isometry/trials.zip)

thanks again,  
john
