Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | cobracon |
How do you code in combo moves and such. And by this I mean how do you get Godot to register several buttons push at once. Thanks in advance
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | cobracon |
How do you code in combo moves and such. And by this I mean how do you get Godot to register several buttons push at once. Thanks in advance
Reply From: | Inces |
Real fighting games rarely check if buttons are pressed at once. Each button press triggers some kind of combo indicator/counter and untriggers it after chosen time passes. For moves like A+B this time is simply very small, closer to few frames. I suspect modern fighting games have very complicated button - combo system, backed up by large data sheets. You can design simpler one, but You surely need this kind of input intermitter to detect multiple presses ( if input X is (just)pressed → actionpress X is true → wait Y - > action X is false )