A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Fighting Game - questions

  1. #1
    Senior Member
    Join Date
    Apr 2001
    Posts
    333
    im thinking about making a fighting game but i stuck on a few components of the game.

    first of all how do you get an enermy to follow or move towards you? i cant seem to get this one.

    secondly how can you make "combo" moves and special moves? like by pressing three keys in a certain order.

    if anyone can help me with then id be VERY happy.

    many thanks

  2. #2
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756
    gasattack,
    sorry I had to change your title. In this difficult times no one could posibly love violence..Ill answer your question shortly..

    mad_sci

  3. #3
    Senior Member
    Join Date
    Apr 2001
    Posts
    333
    hey.
    i do love violence but i hate mortal combat. but hey i understand what your saying. i hope us brits can help you guys out. but anyways can you change the title to somthing cool like "i love fighting games" ok its not cool but its better than people thinking i like mortal combat.

  4. #4
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756
    gasattack. done..now about the combos..for each key press assign a variable for example:

    if ( key.isDown (key.LEFT)){combo+="a";}
    if ( key.isDown (key.RIGHT)){combo+="b"}

    from the first key down start a counter, at the end of the counter look at the string combo. It will be something like:

    "abbab", or left-right-right-left-righ.

    now you make a small array database with combos and match the above string..

    mad-sci

  5. #5
    Who needs pants? hooligan2001's Avatar
    Join Date
    Apr 2001
    Location
    Somewhere
    Posts
    1,976

    Smile For Mad Sci

    Hey mad Sci i no ur probally busy , but..

    could you help me start to make a fighting game ..

    how to make a jump and punch and health and collision

    i tried but it just doesnt work

  6. #6
    Senior Member
    Join Date
    Aug 2001
    Posts
    121
    theres a flash/anime website that has a tutorial on making fighting games...

    HEY! A HISTORY-MAKING EVENT!!! MY 100th POST!!!

  7. #7
    Senior Member
    Join Date
    Apr 2001
    Posts
    333
    hey raislam are you talking bout http://www.shockanime.com ?

    if so yeh ive been there but it doesnt really help me with what i want. it just tell you how to detect keypresses.

    anyways can anyone help me with the second Q?
    many thanks

  8. #8
    Senior Member
    Join Date
    Aug 2001
    Posts
    121
    thats wut i meant... and i think u should try the string functions like madsci suggested

  9. #9
    Senior Member
    Join Date
    Apr 2001
    Posts
    333
    ok the combo thing works!

    buyt i have another Q. how can i make it so when you press a key you HAVE TO press it rather than just hold in down?

    also i still need help with getting enermys to randomly appear and follow or go towards the character.
    many thanks

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center