Hello Proggis !
![](smile.gif)
I have a problem with my ISO-TILE Engine !
![](sad.gif)
Now, I support pictures, because I think you don't have
understand what I have asked (It is my bad English!).
Please try to help me, because I can't continue with my work
1.) For my Ground I use Tiles of the size 64x32:
![](http://members.tripod.de/FinalBrain/topic/tile64x32.JPG)
2.) On the Position 32,16 you can easily put two Tiles
together !
![](http://members.tripod.de/FinalBrain/topic/tile64x32a.JPG)
3.) Now you put all Tiles from the top-left to the bottom-right
together like this.
![](http://members.tripod.de/FinalBrain/topic/tile64x32b.JPG)
4.) The green Rectangle is the viewport of my Engine !
(The blue dust should be numbers from 1 to 32!)
![](http://members.tripod.de/FinalBrain/topic/tile64x32c.JPG)
5.) Now I make them transparency and add smooth-scroll
support ! (It works!)
![](http://members.tripod.de/FinalBrain/topic/tile64x32d.JPG)
6.) It is time to implement Tiles with z-height !
To make the Tiles look like Tiles with z-height you
can use a calculation like this.
For an easier calculation I prefer the
right-bottom of the Ground Tile as calculation
start position.
![](http://members.tripod.de/FinalBrain/topic/tile64x32e.JPG)
To blit a z-Height Tile, you need to calculate the X,Y Position
of the left-top corner of the z-Height Tile !
So we start at the right-bottom corner of the ground Tile
(It has the size 32x16) and add the height of the z-height Tile to it !! The width of the large z-height Tile is the same as the
size of the Ground Tile !
BlitLargeTileX = rightGroundTilePositionX - GroundTileWidth
BlitLargeTileY = bottomGroundTilePositionY - LargeTileHeight
If LargeTileHeight equals 32 then you have the same height
as the ground-Tiles. So you have no height ! Only heights over
32 are visible as z-Height !
6.) Now we Blit the large Tile on screen.
Of course transparency !
![](http://members.tripod.de/FinalBrain/topic/tile64x32e2.JPG)
7.) But now there are my problems. If a Tile is invisible
and has not arrived the vieport it is not blittet.
That is ok, because of performance. I CAN NOT BLIT
THE WHOLE MAP !!
Here you can See the problematic-zone !
(the red x is the startpoint of drawing)
If I now scroll pixel per pixel to the ground-Tile
which should appear, then the LargeTile with z-height which depends on the ground Tile appears at one step, because its
X,Y start Coords are
![](http://members.tripod.de/FinalBrain/topic/tile64x32f1.JPG)
Here is no Problem!
![](http://members.tripod.de/FinalBrain/topic/tile64x32f2.JPG)
Here is no Problem!
![](http://members.tripod.de/FinalBrain/topic/tile64x32f3.JPG)
Here is no Problem!
![](http://members.tripod.de/FinalBrain/topic/tile64x32f4.JPG)
Can you PLEASE help me to solve the Problem of
drawing Tiles with varity heights !
![](smile.gif)
I hope someone can help me........
![](sad.gif)
Thank you very much.
The first person which solves my problem
gets the first beta-version of my ISO-GAME !!!!
Edited by - MisterByte on March 23, 2001 8:57:52 AM