Trying to make a random image selector

So I'm trying to make a simple app that has a button that will play a sound and when that sound completes it randomly selects 1 image from a group of 5 and displays it. The button works fine, but I'm not sure how to go about making the list of images and having it randomly select one after the sound file finishes playing.

Thanks in advance!

1 Like

Hello Gekko, welcome to our community, You can do it like this

2 Likes

The Player component has an event block for this.

is there any way to put a delay before each image appears?

Use a timer from the clock component

thanks, is there any way to add a on screen timer. to show how much time has passed?

Yes, you can use the clock timer for that as well (displaying the elapsed time in a label)