Trying to use TweenTransform to arc a ball as it moves from one side of the screen to the other
I'm essentially creating a snowball fight game and would like to "throw" a sphere when the user taps it.
Currently using TweenTransform to move the sphere from one point to another, but I'd like to make this more realistic by having it arc, and possibly rotate, as it is traveling to its target.
Is this possible? I can't find any relevant documentation?
Hi Scott,
The arcing movement you're describing isn't available in the Tween system. It only tweens between point A and point B. You can, however, rotate an object while it moves by adding two TweenTransform scripts to an object.
You can find Tween documentation here: https://lensstudio.snapchat.com/guides/scripting/tweening/
Let me know if you have any other questions!
Best,
Peter