The Daily Click ::. Forums ::. Klik Coding Help ::. How do I create a combo system?
 

Post Reply  Post Oekaki 
 

Posted By Message

Joshua M.



Registered
  01/06/2004
Points
  1999
27th November, 2004 at 17:40:36 -

Ok, see it like this.
I have a samurai. He has 2 attacks, one attack is a slash to the right, the other is a slash to the left. I want to create a combat system, to begin the attack you press CTRL, that would be the slash to the left, next, when you press CTRL during the animation if it has reached frame 5 or higher, you should slash to the right, and so on and so on.
So you'd be slashing left, right, left, right, left etc etc etc

Now, I've tried something, but it's really crappy. Can somebody help me?

Oh by the way, I use TGF.

 

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
27th November, 2004 at 17:58:37 -

is all the fighting animation in one direction?

if not, this might work
upon pressing ctrl
+ animation fight left is playing
+ animation frame >= 5
=change animation sequence to fight right

upon pressing ctrl
+ animation fight right is playing
+ animation frame >= 5
=change animation sequence to fight left

As i said, it might work, this is just a quick soultion that i haven't tested

 
My signature is never too big!!!

Joshua M.



Registered
  01/06/2004
Points
  1999
27th November, 2004 at 18:13:31 -

Well they are two different animations.

 

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
27th November, 2004 at 21:39:54 -

Joe's way takes into account that ther're two different animations. His way should work.

 
http://www.klik-me.com

Joshua M.



Registered
  01/06/2004
Points
  1999
28th November, 2004 at 09:18:01 -

Well I've got this so far:

http://mononoetoe.myadsl.nl/Combosystem.gam

Don't mention the gore, hehehe. I think the combosystem is still somewhat jerky, but what do you guys think? What should be improved? And how can things be improved?

EDIT: I hope your NOT just downloading this stuff and stealing my game without helping me here!

Image Edited by the Author.

 

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
28th November, 2004 at 16:27:54 -

Hey, that's good. I've started a combo system for my game and its similar.
Btw, I have to say, I love the blood!

 
n/a

daveC04



Registered
  26/09/2004
Points
  163
29th November, 2004 at 00:16:33 -

well i had a little look at it, from the looks of it you have what you want? what isn't working? when i tested it he would do each attack one after the other, but i think sometimes the first swing was happening more than the second.

anyway, if you want a combo system you should make it at least a 3 hit combo, and the enemy should get stunned and stop moving when you hit them.

 
n/a

Joshua M.



Registered
  01/06/2004
Points
  1999
29th November, 2004 at 02:35:54 -

@Klikmaster:
Thanks! Hehe, blood!!!

@DaveC04:
Yeah the first attack comes much more often, thats what I want to fix. Maybe I should duplicate some frames to make the second attack longer, so that you'll have a bigger chance of not breaking the combo.

Yeah 3 hit combo, I know I want that too but this is just a test. Cuz.. ehh, you see I played a ninja game, and it totally rocks (I think), and thats when I saw that combothing, well I call it a combo. Check it out: http://www.klik-me.com/KMv2/download.asp?id=22

 

daveC04



Registered
  26/09/2004
Points
  163
29th November, 2004 at 07:25:58 -

maybe you could just use a flag like...

pressed fire 1
+ flag 1 is off

Play attack 1 animation
set flag 1 on

pressed fire 2
+ flag 1 is on

Play attack 2 animation
set flag 1 off

something like that would make it so he always does the second hit second, but would also mean that it doesnt depend on timing, so you could throw in something extra like, if animation attack 1 is finished, set flag 1 off or something like that. i dunno, sounds kinda right...

 
n/a

Joshua M.



Registered
  01/06/2004
Points
  1999
29th November, 2004 at 08:17:59 -

Well, that would mean if you tapped the shift button a lot, that you wouldn't attack at all, because the warrior doesn't seem to be able to choose between an attack to the left or to the right (the actual slash is at frame 5). Hmm, the idea was nice though . I changed the length of the animation to 10 frames, so that you have frame 5 to frame 10 to execute the second attack, but I'm still working on it.

(opens the Nikujin file and starts copying...)

 

Joshua M.



Registered
  01/06/2004
Points
  1999
29th November, 2004 at 09:03:49 -

Sorry for doubleposting but I have to say I speeded up the attacks, and its cool! Now just for some gameplay. Check this out: http://mononoetoe.myadsl.nl/TGF/Combosystem_X.gam
No bad timing anymore (I think)!!!

And ehh, don't just download it and steal the source. At least say something about it

Image Edited by the Author.

 

Earwig



Registered
  09/02/2003
Points
  36
1st December, 2004 at 08:25:11 -

My samuel L jackson dance game will feature a combo system so if you hit the right tune you'll hear famous quotes like "your damn right" or "You are not in control!"

Peace out
Image


 
n/a

Joshua M.



Registered
  01/06/2004
Points
  1999
3rd December, 2004 at 04:08:08 -

.. aha

 
   

Post Reply



 



Advertisement

Worth A Click