handle multi vs single press
Posted: Tue Oct 17, 2017 10:52 am
Hi,
Before I reinvent the wheel, is there a 'common' way to handle multi press ?
Let me explain.
If you press A, you kick
if you press B, you punch
if you press C, you jump
if you press ABC, you call the devil and destroy every enemy on screen!!!
To press ABC at the EXACT same time/frame is a PITA.
So I had to deal with ABC pressed on a 2 or 3 frames interval.
BUT if I do this, it's totally possible to start to kick (A) before I detect the player wants in fact use the special attack (pressing BC on next frame)
I could wait a frame or two to launch action but it will look as a lag (and I hate Bubsy!!!)
So does it mean I had to handle a way to 'revert' kick/punch/jump when it's finally obvious what the player REALLY want ?
How do you handle it ? How do others games handle it ?
Thanks for any hint
note : i'm not talking about SF2-like moves, it has to be handle a totally different way...
Before I reinvent the wheel, is there a 'common' way to handle multi press ?
Let me explain.
If you press A, you kick
if you press B, you punch
if you press C, you jump
if you press ABC, you call the devil and destroy every enemy on screen!!!
To press ABC at the EXACT same time/frame is a PITA.
So I had to deal with ABC pressed on a 2 or 3 frames interval.
BUT if I do this, it's totally possible to start to kick (A) before I detect the player wants in fact use the special attack (pressing BC on next frame)
I could wait a frame or two to launch action but it will look as a lag (and I hate Bubsy!!!)
So does it mean I had to handle a way to 'revert' kick/punch/jump when it's finally obvious what the player REALLY want ?
How do you handle it ? How do others games handle it ?
Thanks for any hint
note : i'm not talking about SF2-like moves, it has to be handle a totally different way...