Hi !
Initially, I work alone without asking help (with lurking some forums and stack overflow threads), but, I am completely stuck for days, so, here I am
Background :
I am working on a top down game with Pixijs with one problem: manage as many entities as I can before the simulation slow down. I heard about gsap and I would like to "convert" my manual translations with gsap animations. For now, all animations are okay, except :
TLDR :
How can I animate a keyboard activated movement for a ship with a constant speed of 10px/s with a fixed 1s acceleration/deceleration ?
Tried solution (in codepen) :
As I don't know the destination it looks that I can't tween with `gsap.to`. For now, i am easing a velocity value. Added in a custom loop to the position of the ship each frame (with gsap.ticker). With this solution, I am not using gsap each frame so ... no lag smoothing and frame interpolation.
Thanks you for your time ?