Well I'm having a small problem you could say...
When trying to get the tiles to display Rb crashes hard, locking
up my Mac...
No doubt its something I'm doing wrong.....
Ok the info:
Tile sizes 64 x 64
Map: 17 tiles across - 0 - 17 (18 total)
7 tiles down 0 -7( 8 total)
I save the map's in layers 5 in all. Same size.
there are saved in a binary file. This is what
is in layer 1 - display dumped by my map maker.
08, 11,10 = clouds 01 = sky 00 = nothing (white picture) where ground
and other stuff would be in other layers.
Note the O's were added just for the dump display.
********************** Layer: 1 *************************
08 01 01 01 01 01 08 08 08 01 01 08 08 01 01 08 11 10
11 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
08 01 08 01 01 01 08 08 01 01 01 01 08 01 08 01 08 10
01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Ok now in the game I'm trying to make, I though
I would set up each Map layer the number of tiles
across and down and place the map data in.
*the map is set to map(7,17)
Game_Map_Layers(LN).Insert_Tile_ID(readfrom.readShort,c,r)
Well that caused Rb to crash and my Mac. So I tried (8,18) still
crashed.
I've tried flipping them around (18,8) no good.
I tried Game_Map_Layers(LN).Insert_Tile_ID(readfrom.readShort,r,c) no
good.
So I tried map(100,100) that worked.....
This is what is in the Paint Tile event -
g.drawPicture
Tiles(game_Map_Layers(1).Get_Tile_ID(xpos+1,ypos+1)).Get_TileImage,0,0
g.drawPicture
Tiles(game_Map_Layers(2).Get_Tile_ID(xpos+1,ypos+1)).Get_TileImage,0,0
g.drawPicture
Tiles(game_Map_Layers(3).Get_Tile_ID(xpos+1,ypos+1)).Get_TileImage,0,0
g.drawPicture
Tiles(game_Map_Layers(4).Get_Tile_ID(xpos+1,ypos+1)).Get_TileImage,0,0
g.drawPicture
Tiles(game_Map_Layers(5).Get_Tile_ID(xpos+1,ypos+1)).Get_TileImage,0,0
Now when it does draw them, the first two rows of in layer 1 are, I
think, over drawn.
There just not there.
I'm not sure what I have done wrong. Its driving me insane!
Thanks
eric
---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
.
|