Combos?

memski425memski425 Member Posts: 19
edited August 2012 in Working with GS (Mac)
Is it possible to create an actor that has sword combos when a button is pressed numerous times?
If so... How would i be able to create combos?

Best Answers

  • tatiangtatiang Posts: 11,949
    Accepted Answer
    Okay, so did you try my suggestion? You can also use the game.time or actor's self.time to determine how long it has been since the first slash and then award a connected attack if they do it quickly enough.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • tatiangtatiang Posts: 11,949
    Accepted Answer
    That one's really up to you. You can constrain a sword actor to a position near the main character actor and have it rotate or move (jab) in a certain direction, but there are other ways to make a sword attack (e.g. Animate).

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Answers

  • kinzuakinzua Member Posts: 554
    @memski425 make a logic for system to learn if the combo is takin place.. for e.g... u have 2 buttons A & B.. when pressed fast one after another.. u want combo to take place..

    So make a logic like..

    when A is pressed..

    after 0.5 sec,if B is not pressed (not run to completion) do A action..
    after 0.5 sec, if B Action is pressed too, do combo..

    u'll have to do a little trial.. also look for topic 'Timer-for chumps' it'll help u tremendously.
    Let me know if something like this worked..
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Are you wanting to do combos where multiple buttons are pressed, or where if you use your sword correctly 5 times in a row you get a bonus? If it's the latter, just make a game attribute of type index such as game.comboCount and increase it by one each time the player uses the sword correctly. Then have another "control" actor that checks to see if game.comboCount >= 5.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • memski425memski425 Member Posts: 19
    @tatiang - i wanted a combo when u press one button once it was just a small slash and then a second press would make a connected attack from that and so on with the presses.
  • memski425memski425 Member Posts: 19
    no i have not tried it yet because i do not know how to make the actors sword attack the enemy :(. That was another question i had
  • memski425memski425 Member Posts: 19
    ok thanks bud :D it worked
  • 3xL3xL Member Posts: 676
    Man this sounds fun. I would love to make a fighting game. I think hd can do it with the right behaviors.
Sign In or Register to comment.