A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [F8] Combo system: best approach ??

  1. #1
    Qwaizang:syntax_entity_ Q__Hybrid's Avatar
    Join Date
    Aug 2005
    Posts
    270

    [F8] Combo system: best approach ??

    In my engine, I need players to be able to perform combos when attacking.

    The concept I had for this is to use an array to buffer method references that correspond to the attacks that are being keyed in, then simply call each method and perform each attack until either the combo is completed or a condition arises that would halt the remainder of the buffer (at which point the entire buffer would be zeroed out.)

    Is this a sensible approach?
    Qwai•zang \kwî-'zan\ n [origin unknown] 1 : abstract designer, esp. of complex real-time experiments, c. 21st century

  2. #2
    Senior Member
    Join Date
    Nov 2006
    Posts
    115
    that makes sense

    if you have a combo buffer and you hit the attack button does it then add that attack to the buffer? or is this only for speacial attack combinations (assuming there are multiple buttons to attack)
    If it is the later then you might want to make another variable specifying what location you are in the combo so you don't have to scan through the array each time to determine what other keys can be pressed.

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