Jump to content
Search Community

glasseye07

Members
  • Posts

    4
  • Joined

  • Last visited

glasseye07's Achievements

0

Reputation

  1. Hi, I've been trying to use your demo with Pixi but getting mad results. When I don't use scale it works fine, but when using scale set to 1 (so it should have no effect), the sprite seems to disappear ? Comment and uncomment line 14 to see what I mean. https://codepen.io/glasseye07/pen/RwrodEN
  2. Hi Zach, Thank you, long time intermittent user and fan of Greensock. What you do is awesome. Yes, I want to move a PixiJS sprite from point A (with a scale of say 0.5) to point C (with a scale of say 0.5). On its journey between A and C it crosses point B with a scale of 2.0. So it scales up and down as it moves along between the points. Logically a point on a path should be able to accept all the properties ( such as { x: 120, y: 0, scale: 0.2, rotation: 10 }, like a keyframe in animation ), but that does not work. Any help would be appreciated.
  3. Hi, I'm trying to scale an object as it moves along a path. As if it you are looking down on a ball bouncing. When I leave scale out it works fine, : let path = [ { x: 120, y: 0 }, { x: 0, y: 568 }, { x: 168, y: 714 }, { x: 240, y: 627 }, { x: 118, y: 411 } ]; but when I used scale it goes allover the place (I've tried other array layouts but this is the only one that will not cause an error). let path = [ { x: 120, y: 0 }, { scale: 0.2, rotation: 10 }, { x: 0, y: 568 }, { x: 168, y: 714 }, { scale: 5, rotation: 10 }, { x: 240, y: 627 }, { x: 118, y: 411 } ]; Cant find any examples of how to make this work and in docs paths either only use x and y or scale and rotation? Any help would be gratefully appreciated.
×
×
  • Create New...