How do I squash and stretch a sprite with a tween?

0 favourites
  • 5 posts
From the Asset Store
Calculate parabolic trajectories and tween objects over them.
  • But the catch is, I want the sprite to stay on the ground, when I use any of the tween behaviors to adjust the height/scale, the sprite shrinks from the bottom and top, so it gets lower from the top and higher from the bottom, I want it to stay in place and shrink from the top towards the centre and back again.

  • The location of the origin determines from where a sprite stretches or shrinks, so placing it at the bottom of your sprite should make it squash and stretch the way you're wanting. Otherwise, you'll have to adjust the sprite's position based on the current amount of squash or stretch.

  • I've tried repositioning the sprite to counter the origin, but I can't get the position to move with any of the tween behaviors since I'm pinning my sprite to a container. I was hoping the positioning would happen post- the pin.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I've tried repositioning the sprite to counter the origin, but I can't get the position to move with any of the tween behaviors since I'm pinning my sprite to a container. I was hoping the positioning would happen post- the pin.

    So change the origin of your sprite, which is the preferred way, anyway..

  • Thanks, works well like that.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)