#Lerp screen images
4 messages · Page 1 of 1 (latest)
You should use the screen transform component on them to move it
https://docs.snap.com/api/lens-studio/Classes/Components#screentransform
The easiest way is changing the anchor’s center like
script.screenTransformVariable.anchors.setCenter()
You might be able to do it using the TweenTransform script (from the standard Tween assets). Set the start to off-screen (top or bottom) and the end off-screen in the other direction, set it to loop. Play with the easing values to find a velocity curve that suits your application.
This will move one image vertically, and then you can do the same for each of the other images with slowly increasing delays before activation.
It'll be a little tricky if you want to repeat the same images without a gap at the repeat point (you'll need to match the move distance to the total height of all your images).
Thank you for the help