User Tag List

Results 1 to 8 of 8

Thread: Fighting game combos

  1. #1
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Godspeed8118's Avatar
    Join Date
    Feb 2008
    Location
    NJ, United States
    Posts
    67
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Fighting game combos

    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

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Fighting game combos

    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

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Godspeed8118's Avatar
    Join Date
    Feb 2008
    Location
    NJ, United States
    Posts
    67
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fighting game combos

    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

  4. #4
    mojofltr
    Guest

    Re: Fighting game combos

    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

  5. #5
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Fighting game combos

    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

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Godspeed8118's Avatar
    Join Date
    Feb 2008
    Location
    NJ, United States
    Posts
    67
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fighting game combos

    Quote Originally Posted by mojofltr
    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
    What do all the different numbers mean?

  7. #7
    mojofltr
    Guest

    Re: Fighting game combos

    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.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Godspeed8118's Avatar
    Join Date
    Feb 2008
    Location
    NJ, United States
    Posts
    67
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fighting game combos

    No problem.

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

Similar Threads

  1. Fighting Game
    By WareWolff in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 30th August 2010, 01:56 PM
  2. Combos in a fighting game
    By Brisingre in forum File Archive
    Replies: 1
    Last Post: 13th April 2008, 11:01 PM
  3. Fighting Game...
    By Typhoon in forum The Games Factory 2 - Technical Support
    Replies: 12
    Last Post: 1st December 2007, 11:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •