Sorry my English.
Anybody knows why when I create a tile happen error in the access to memory? For example, I write: tile WALL and enter then happen the error. I need Kyra for a academic project, but if I don't correct this error will be impossible use it.
Could we have a small code snippet?
I didn't code. I just was using the sprite editor of Kyra. The problem is I load a picture and after when I go create a tile happen the error. To see it try create a tile using Kyra and you will see. I'm using Microsoft Visual C++ .NET. The problem can be the Visual C++. I don't know.
Thank you Lee!
Ah -- you found a (surprising) bug in the Sprite Editor. Hmm..I'll take a look.
1. use a Sprite. (Sprites are easier to use than tiles anyway.)
2. load via an XML file directly. See the docs on "KyraXML"
The game I am doing is a isometric game like BEM. Then I think that tiles, in this case, can be better. What do you think?
Thank you for your help!
Lee, does BEM use tile or sprite for define the floor?
All right, I found BEM use sprite. Then I think sprite is a good option for isometric. But now the problem is: When the encoder create bem.dat the file bem2.xml has the floor. The encoder then load bemFloorTile2.pcx and start to create actions like:
NONE.ROT000, NONE.ROT090. But this actions there aren't in the file bem2.xml. Hence I don't get(obtain) create my floor using other picture because I don't know create this acions. Why this? What do I do?
Yes, the KrSprite is a good choice for Isometric layout. (The KrTile won't work at all, actually.)
The '.ROT000' results because rotation is specified in the XML file. It is automatically generated rotated tiles. If you don't need rotated tiles (and you probable do not) just remove the "Rotation" attribute.
Where can I find the complete game of BEM? Is it possible find it? The reason is because I want to see the final result of a game like BEM. When we see a complete game we have a better idea of that is possible to do.
BEM, the game, is not open source. And not even build on Kyra! (Kyra was build from BEM, actually.)
In any case, the bem demo (bemgame.cpp) has lots of good stuff on how to set up an isometric world.
On the original bug - the Tile crash - there seems to be a bunch of bugs that slipped through. I was able to easily repro the bug you reported.
A fix is in CVS. Bug in the Rectangle class, of all things. I'll get a new version out soon.
There is any complete game build from Kyra?