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?
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!
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.
@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
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...
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.
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
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!"