How to create a randomizer that starts when screen is tapped

Hello!
I'd like to create a randomizer that starts when the screen is tapped. If the screen is tapped again, then I'd like the randomizer to restart. Is there a simple way to achieve this?
*Note: I don't like Lens Studio's randomizer asset because the randomizer automatically starts and a screen tap is what stops it.

Answers

  • Aleks Brzoska
    Aleks Brzoska Posts: 12 🔥

    Hi @Cassidy Carson !

    I've created this lens for you, hopefully I understood correctly.
    Tap screen to start (spins for 4 seconds, then automatically chooses)
    then tap screen to restart and so on.

    Here:
    https://drive.google.com/drive/folders/1j_If28QTdeUqEYt8a0lT8_OPXD0jo1gI?usp=sharing

    If you have any questions, or if you need more help, just let me know right here on this thread.

    To change the time for how long it spins after tap, go to 'Random Image Control' in the 'objects' section, then click on 'Stop Random' and change delay time to whatever you want in the inspector.

    To change the IMAGES that are being randomized, go to 'Random Image Control' in the 'objects' section, then click on 'Random Image Controller' and change, add or remove images in the inspector section.

    Feel free to build your project on top of this and share once you're done!