Jump to content
Search Community

SauceCode

Members
  • Posts

    4
  • Joined

  • Last visited

SauceCode's Achievements

0

Reputation

  1. Interesting ... We can see that there is no significant difference between the two. But, using the two together can bring us some light drifting over time.
  2. Perfect, thanks you for your time. I have a better understanding on how integrate gsap
  3. Very interesting ! I will look at this for key handling. The question that remains is by doing a gsap.ticker.add(() => { pos.x += velocity.x }),will we have cpu sluttering on animation that we avoid using a gsap.to() ? Thanks
  4. 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 ?
×
×
  • Create New...