What I Want to Achieve:
I want to create a system where pressing a button twice within a short time triggers a different version of a move. For example, a single press performs a basic action, while a quick double press activates a more advanced or alternate move. The system should be smooth and responsive, correctly detecting double presses without interfering with normal gameplay.
I have some struggle to implement a double-press system due to difficulties in accurately detecting quick inputs, avoiding conflicts with single-press actions, and ensuring consistent responsiveness across different devices and frame rates.
( Sorry, if i used chatgpt on this post. I don’t know english that well)