Forum Discussion
CajaPopularM704
1 year agoCommunity Member
Gsap Mouse Down animation
Hello everyone,
I am currently working on a little game where the character used must walk, so I've been trying to use GSAP to make it work, the interaction is simple:
While the button is pressed...
johnpaul14
22 hours agoCommunity Member
For a continuous “move while held” interaction, I’d use gsap.ticker rather than starting a normal gsap.to() tween on mousedown. Add the movement function on mousedown, then remove it on both mouseup and mouseleave; that approach has also been used successfully for this exact Storyline/GSAP use case.