Stretch a sprite in runtime in code how the rect tool works

Hi, trying to get a sprite to ‘stretch’ or ‘bounce/squish’ as an effect, similar to how the rect tool works as seen below.

sk3pkq

The rect tool only changes the scale and position of an object so I assume I can do it with a function.

Cheers

You could probably do this pretty easily with an animation. I spent like 15 minutes looking for a good tutorial on it, but they’re mostly on stuff that’s unrelated. Here’s a video I found that walks through something similar though, starting at the 1:20 mark.

You can create a new animation and just record the bounce like you’re doing in the video you showed.

1 Like