- Edited
Imagine we're building a fighting game and we wanna create a Special Move. For example the Hadoken from Street Fighter. How can we create an Input Handler that watches the Input and Determines whether or not the move should be activated or not.
For example If i press
↓ , , → , [ A ] (The Keyboard Button)
I want it to Print "true" otherwise I want it to do nothing.
How can we create such a script where we can Specify The Required Inputs in the Script, and the Input Handler just watches the input and determines if they were correct/wrong and which move was executed.
It was kind of difficult to find a solution for this, and I'm not Super Used to GDScript So It will be appreciated if someone can give a bit of insight to this problem.
Thanks in Advance! Best Regards