Hi
I've been working on a fighting game and I haven't been able to figure out how to make combos. I feel like there is a simple solution that I may have overlooked but I can't seem to figure it out


Hi
I've been working on a fighting game and I haven't been able to figure out how to make combos. I feel like there is a simple solution that I may have overlooked but I can't seem to figure it out

Most people add key presses to an alterable string and check the last X characters to see if it matches a combo. Don't forget to clear the string after that![]()
Working as fast as I can on Fusion 3


Do I set the string(combos) and then check each series of button pushes to the set combos? Or something like that... Im not familiar with alterable string
I made this example for someone else a while back. Perhaps it might help you with your project as well?
http://mfa.aquadasoft.com/upload/1312340868-commands2.mfa

You can use an alterable string. Whenever the player pushes a button that could be a combo button, add it to the string as one letter. Then loop through a list of combos and check the end of the string to see if it matches the combo. Once on matches the combo, clear the string so it won't match over and over. You can also clear the string if they haven't pressed keys fast enough.If this concept isn't enough I've made an MFA of this:
http://mfa.aquadasoft.com/view/1312340811-Combos
Note: you need [url=http://www.lb-stuff.com/MMF2/Extensions/InternalList_1.6_Beta3.zip]this[/url] beta version of my Internal List object. It can easily be replaced by a regular list object if you want to export to something other than a Windows EXE.
EDIT: Snipe'd by mojofltr.
Working as fast as I can on Fusion 3


What do all the different numbers mean?Originally Posted by mojofltr
I didn't use the ControlX object as LB did. I needed a way to record when the arrow keys were pressed. So, I wrote events that added a number to the string when the arrow keys are pressed.
Just like typing the word "up" would add a U and a P to the string and then be checked against to make the character go up, pressing <up>,<right> and <ctrl> on the keyboard add numerals to the string. The numbers are checked against and if they are in the right order will trigger a projectile.
I suck horribly at explaining stuff. I'm sorry.


No problem.
Thanks alot though. I'm actually starting to understand it now. This is a big help.