delta-client icon indicating copy to clipboard operation
delta-client copied to clipboard

Implement double tap space to fly and double tap forwards to sprint

Open stackotter opened this issue 3 years ago • 2 comments

If you fix this issue it should help you get acquainted with Delta Client's input handling system.

I have grouped these two together because they are clearly very similar features.

The best way to implement this is probably to add a timeSinceForwards property and a timeSinceJump property to the InputState component. These properties can each be used to store an integer that counts up once per tick and resets when the respective key changes from not pressed to pressed. If the key is pressed a maximum of 6 ticks later, then trigger the respective double tap action (if the action is valid, i.e. if the player is allowed to fly or sprint).

stackotter avatar Sep 10 '22 03:09 stackotter

Feel free to join the Discord server and ask for help if you get stuck. Everyone's happy to help!

stackotter avatar Oct 10 '22 00:10 stackotter

I will do this one as soon as I get Xcode working

nekename avatar Oct 10 '22 06:10 nekename

done in pr #170

jmshgs avatar Aug 06 '23 03:08 jmshgs

Double tap forwards to sprint was implemented by jxhug, and now just double tap jump to fly remains.

stackotter avatar Aug 08 '23 00:08 stackotter

Implement double tap space to unfly (currently the only way to 'unfly' is to hit the ground)

stackotter avatar Aug 11 '23 02:08 stackotter

Done now

stackotter avatar Aug 15 '23 02:08 stackotter