Hello all!
I’m looking for a way to have a push button action be performed repeatedly until a button is released. I’m making a game where the player character will move by pressing buttons, and would like them to move continuously in a direction according button they’re pressing I.e. pressing the left button will make the character move left until it is released, or pressing the right button will make the character move right until it is released. I’ve followed these forums since fall 2016 since I’ve been unable to find any questions like this or pythonista games that implement this feature, I’ve finally made an account.
Methods attempted:
Looping touch_began and touch_ended functions for the scene module, with the exit condition being whether a stack containing the most recent touch action was a press or release.
Integrating these conditions into the update function.
Using a SceneView. However upon finding the delegates for the uiButton, I realised there are no delegate functions besides button_tapped.
Much thanks!