I think I’ve gone mad. I can’t for the life of me work out what I have done wrong here. The number between each <titlecol> tag gives the tile numer which should be applied to the tile when it loads. There are three tiles, tile0 (blank), tile 1 (the 2x2 blocks you can see in the image with grass on the top) and a third tile, tile 2 (a 2x2 block of the same tile without brown on). The ordering of the <tilecol> tags determines where the tiles in that row go, and the different <tilerow> determines on what row it’s column’s tiles go.
(above: the level design)
<map>
<tilerow>
<tilecol>1</tilecol>
<tilecol>2</tilecol>
<tilecol>1</tilecol>
<tilecol>2</tilecol>
<tilecol>1</tilecol>
<tilecol>2</tilecol>
<tilecol>2</tilecol>
<tilecol>2</tilecol>
<tilecol>2</tilecol>
<tilecol>0</tilecol>
<tilecol>0</tilecol>
<tilecol>0</tilecol>
<tilecol>0</tilecol>
<tilecol>0</tilecol>
<tilecol>0</tilecol>
<tilecol>0</tilecol>
<tilecol>0</tilecol>
<tilecol>0</tilecol>
</tilerow>
the xml code (sample):
(above: the three different tiles)
If it was that somehow the tile 1 tiles were obscuring the tile 2 tiles, being sized wrong or something then I could understand this, but I tested it by making the tiles on the top row ‘1,2,1,2,1,2,2,2,2’ and when I run the game it is plainly obvious that there is nothing there, it’s not putting a block down!
I don't know why I think writing a blog about it will help, but I may realize something stupid I have missed.
Well I havn't yet. Anyway I have lots more stuff to add to the blog, loads more screen shots and things, which I will get around to doing eventually.
(note: I am using Adobe Contribute CS3 to edit this blog. I previously tried using Microsoft Word which DOES have the ability to edit blogs, but I couldn't get it to upload images, and I found that other people had this problem by googling my problem. However, I am having the same problem with Adobe Contribute although I can't see anything on the internet about similar problems).
No comments:
Post a Comment