I have an image, and a button. What I am trying to do is move the image when the user presses the button, and stop it when they let go of the button.
I know this is super super simple, but it’s just a lack of experience that is halting my progress.
Is there a way to use transition.to, but force it to stop early? Like if I wanted the image moved no further than 400 x, and when the button is pressed, it starts that transition but when they let go, it stops.
Or is there a better way to do this? I would prefer a fluent movement, maybe a repeat loop or something? Been stuck on this forever!
E: forgot to mention, it is NOT a physics object.