I've been working hard to try and get everything in the engine nearly perfect - that means ironing out bugs and making sure everything is working exactly how I want it to.
Whenever the player interacts with an object, a string will be displayed over the character and display a little comment. So when you try to pick up the tree, he will say "I don't think I'm strong enough" or something along those lines. This string positions over the centre of the character, so the problem I had is that sometimes the string would go outside of the frame whenever the character was close to the frame edge.
I tried all kinds of positioning events to get it right, but then had more problems because each string length is different and the default MMF2 string object only gives X and Y co-ordinates for the object, not the actual string. So I switched to Text Blitter - which lets me use the actual string co-ordinates - and also gives a nice outline around characters so they're easier to see on the backdrops. So now the string positions as I want it too.
I also made some more improvements on interaction. Now whenever you interact with an object, the interaction takes place when the character walks up to the object he's interacting with (whereas before the interaction would occur as soon as the user clicks the mouse button).
There are still some things I want to improve such as the inventory system - I'll probably get to work more on that tomorrow.
|
|