Floating 2d animation
-
Hi Ryan!
The tween system would be great for this. It allows you to create simple programatic animations by just tuning some parameters in the Inspector (no code). Check out this guide:
https://lensstudio.snapchat.com/guides/scripting/tweening/
In summary, you'll import the Tween system downloaded from the above guide. Then, you'll add one of the Tween type scripts to your floating object. If it's a 3D object (or 2D object that exists in 3D space), use TweenTransform. If it's a 2D billboard, use TweenBillboard. Then, you can set it to move or scale from one value to another over time. Make sure to set the loop mode to if you want it to loop back and forth. Finally, play with the easing types to get the movement you're looking for. Hope that helps!
Comment actions
Please sign in to leave a comment.
Have a comment?