Local Tween position possible?

Let’s say for example I have a container or group with two sprites as children. The container has a velocity of 40. When I press a button, i’d like to tween one of the childrens x position to 40 and yoyo back to 0 relative to the group. I’ve been trying for hours and can’t find the right way to implement this.

My question is… Is it even possible?

If not, is there some sort of workaround to get this type of behavior to work?

Thanks! Hope someone can set me in the right direction.

https://codepen.io/samme/pen/zYOgMpK

1 Like