Jump to content
Search Community

barrard

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by barrard

  1.  

    Thanks Mikel,  I checked out the thread and copied the path to my codepen, seems to work fine and remains at the end of the path.
     But the other path you see the sprite jump back to  (0 ,0) at the end of the path, why doesn't it remain at the end?

     

    See the Pen LYyqJwo by barrard (@barrard) on CodePen

     

    The paths themselves aren't anything specific, but why does one box snap back to (0 ,0) and the other doesn't?

    Thanks for any help!

     

    • Like 1
  2. I'm using pixi.js and gsap together in my project.  GSAP handles animating my sprites along paths.  Most of the time it works fine, but sometimes my sprite jumps to `{x: 0, y: 0}` at the end of a path.  The example is using dummy data, but the issue happens thare as well.  Am I using the gsap.to() method correctly?  Thank you for any help!

    See the Pen LYyqJwo?editors=1111 by barrard (@barrard) on CodePen

×
×
  • Create New...