The Daily Click ::. Forums ::. Klik Coding Help ::. How to do multi attacks
 

Post Reply  Post Oekaki 
 

Posted By Message

Fish20



Registered
  03/12/2007
Points
  263

VIP MemberPS3 OwnerI like Aliens!I'm a Storm TrooperIt's-a me, Mario!I am an April FoolPicture Me This Round 48 Winner!
11th March, 2015 at 11/03/2015 21:28:14 -

How do you do an attack so that it plays one animation then the next time you press action it does the next animation. I.E.

Player presses 2 -> Punch
Player presses 2 while punching -> kick
player presses 2 while kicking -> finisher

I can't seem to get it because it happens too fast and it immediatley goes to step 3 and everything cancels out. HARD TO EXPLAIN. Can someone help?

 
All your base are in another castle, take this.

Fifth

Quadruped

Registered
  07/05/2003
Points
  5818

VIP MemberGOTW JULY 2010 WINNER!Kliktober Special Award TagGOTW HALLOWEEN 2011 WINNERPicture Me This Round 51 Winner!
11th March, 2015 at 11/03/2015 23:40:51 -

I'm guessing that you've got it set up something like what you've got listed there? It's testing all three events, one at a time, on the same frame, and since each event sets up the conditions for the next event, all three get executed on the same frame.

The easiest way to fix that would be to reverse the way your events are ordered. Simply...

player presses 2 while kicking -> finisher
Player presses 2 while punching -> kick
Player presses 2 -> Punch

If you want to get more complex, you could add in a value as a cooldown timer. Like...

Player presses 2 & cooldown timer = 0 -> Punch & set cooldown timer to 10
Cooldown timer > 0 -> Subtract 1 from cooldown timer

I would also recommend you use a value to keep track of/test what move is being done, as testing animations is kind of an unreliable thing, but that could be a matter for later.

 
Go Moon!
   

Post Reply



 



Advertisement

Worth A Click