Swipe up action
Hi. How to make animation play on swipe up action? There are different actions in Lens Studio to choose from, including Touch Started and Touch Ended but it lacks of swipe. I imagine, that it would require to block usual swipe reaction and restrict swipe up action to Touch Collision object, but how to pass by actions that are required to choose from?
Thank you for spending your time on reading this. Any help will be greatly appreciated.
I am not sure this is available... but I could def see some use cases for more then just tap..
Hi Patrick, although you're right and this is not available via the drop down, it is possible to calculate this yourself :) See below:
Hi Marek,
You're right! The first thing we need to do is to block usual swipe reaction:
Then, we can calculate where our user is swiping by looking at their touch start and touch end position. For example in a script set on Initialized:
You can learn more about touches in this guide: https://lensstudio.snapchat.com/guides/scripting/touch-input/
Let us know what you end up creating :)
Cheers,
Jon