Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
TheAbomb12
22
Years of Service
User Offline
Joined: 14th Aug 2003
Location: Amist the blue skies...
Posted: 8th Oct 2003 01:48
Hey guys,
Does anyone know how to make fighting game style combo attacks, for example how to get a program to reconize pressing multiple buttons in a sequence (not at the same time)?

thx,
-TheAbomb12

Those who Fight with swords get killed by those who don't
Black Hydra
22
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 8th Oct 2003 04:11
Well although I am not the best source in theory wouldn't you want it to be something like this:

if the button is combo button 1 then upgrade variable combo to 1
time the max time to give combo button b
if there still isn't combo button 2 pressed then reset combo to 0
if the button is combo button 2 then upgrade variable combo to 2
time the max time alotment again
if there still isn't a combo button then reset combo to 0
if the button is combo button 3 then reset variable to 0 and play the combo animations/moves

I don't know whether that helps but it is the psedocode I'd use...
TheAbomb12
22
Years of Service
User Offline
Joined: 14th Aug 2003
Location: Amist the blue skies...
Posted: 8th Oct 2003 05:52
thx, i didnt think of that

Those who Fight with swords get killed by those who don't
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 8th Oct 2003 17:13 Edited at: 8th Oct 2003 17:17
I suggest you always make your own animation system, forget play object and loop object, keep track of your own frames and use a sorta player mode system. For example, say you had a model with frames 1-10 being idle, 11-20 being walk left, 21-30 being walk right, 31-40 being punch, and 41-50 being another combo punch.

You could do this:



HTH,


Van-B


They both should have been back at work an hour ago.

Login to post a reply

Server time is: 2026-07-26 05:03:15
Your offset time is: 2026-07-26 05:03:15