In the example below I’m trying to get player to press the “Right” key twice in quick succession in order to increase speed. Once sped up, when they let go of the key, the speed goes back to normal.
Something is wrong with my code. It seems to work sporadically. Sometimes it works only once (like straight after a fresh load). Other times it’ll work as expected a few times in a row, but eventually it stops working and the double key press ends up doing nothing. Any ideas?