String Parser 2 & Text Blitter [MMF2]
Ok, I've got 3 problems I'd seriously need some help with.
Firstly, the game I'm working on is a platformer with elements of fighting games. Input combinations for special moves, to be precise. I asked about this over at TDC and got some good answers, but only to an extent though.
What I've got now is one string which I add characters to depending on what button is pressed, and adding an 'x' every ½ second. And String Parser to search for a completed string. The events goes like this:
[]* Every 00"-55
- Hero: Set Alterable String A to Alterable String A("Hero")+"x"
* Player 1 moved top
- Hero: Set Alterable String A to Alterable String A("Hero")+"p"
* Player 1 moved down
- Hero: Set Alterable String A to Alterable String A("Hero")+"K"
* RightStr$("StringParser", 4)="PKP"
- Hero: Change animation sequence to "Special 3"[/]
The problem with this is that MMF doesn't ignore the x's this way. I need to have a one 'x' margin of error for the input otherwise it'll be extremely hard to get the combination right every time. I know that I need to use String Parser for this, but when it comes to both String Parser and Text Blitter I'm clueless how to work with them.
Ok, next problem is Text Blitter. I want to use Text Blitter to show dialouge in my game, mostly because I don't need to use an actual font. I checked out the typewriter example which comes with the extension. I can get the actual typewriter effect to work, but I can't get it to change into the next paragraph correctly. I want the paragraph to change when the player presses a button, and changing the paragraph of the original string isn't as big deal. It's getting Text Blitter to erase all previous text and start typing out the next paragraph which I can't get to work right.
The third problem is also with the Text Blitter. It's about the charmap. My character sheet looks like this.
When I set the charmap and run the app the letters get messed up. Like this.
Well that's that. Those who help gets cred for it of course. Thank you.
Re: String Parser 2 & Text Blitter [MMF2]
Come on, not even one reply? <img src="/center/images/graemlins/frown.gif" alt="" />
Re: String Parser 2 & Text Blitter [MMF2]
I dont know much about text blitter, but those in the community forum might. Sorry I can't help :s .
Re: String Parser 2 & Text Blitter [MMF2]
I originally posted it in the open topic community forum, but it got moved here. Maybe it should be moved back :P
Re: String Parser 2 & Text Blitter [MMF2]
Oh, sorry. But I would sugest moving it back. you could also PM some people if it's really urgent.
--jayklik
Re: String Parser 2 & Text Blitter [MMF2]
1. There are a number of ways to do this. For example, you could make a loop which runs 4 times. At first it sets all the flags (of a data store) off, then it checks each character and it it is A it sets flag 0 to in, B it sets flag 1 to on, etc. Then you check to see if all flags are on. Alternatively, you could use an object such as the Tokens object to remove the X's and check to see that the length hasn't changed too much.
2. Use "change alterable text" instead of "append text".
3. Try the generator.