How to set a clickable button to show different images in order

Greets everyone, i was wondering how to code a clickable button to show different images with each click but in order. Ex: click 1 show image SETUPa.PNG. sECOND CLICK SHOW IMAGE setup2.png and so on.

Here is what i achived so far (image to change with first click) but cant find a tutorial with the answer to make the progression.

Thanks in advance.

Use a variable called itemNum to store the list item # and set it to 1 to begin with. Each time the button is clicked, change the itemNum variable by 1 and set the image’s picture to item #[itemNum] of list setup.

1 Like

thanks solved it this way it does what i need

image

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.