So I have this little problem here. I want to use my pictures that I made with arrays.
The goal is when you click your mouse the fist picture (array[0]) comes up and when u click again the second picture in array[2] comes up, this goes on until array[4]. I don’t know how to programm it. I wanted to do it with a for loop but it’s not really working. Does any of you have an Idea on how to do it?
Here’s the code I have so far:
Thank you for your reply but it’s not really working. I’ve tried it but then when I press my mouse my other pictures I’ve used in a for loop dissapear (I haven’t shared that part of the code). If I use a function and if loop to write your code nothing happens.