There are a few things I am trying to do... First, how can I make it so the mouse/cursor HAS TO BE located in the center of the canvas for the mousePressed commands to happen? So, in other words, not just any click works to switch the images I have loaded, but the mouse has to be in a particular spot (in this case the center of the canvas) for it to work. Second, how would I make it so when the mouse is clicked a random image is shown, as opposed to always showing up in the order I have them being loaded. Third, in addition to having the mouse being clicked and the image changing, would I be able to also have a command that is when the mouse is pressed and held down the images automatically scroll and when the mouse is released it stops scrolling. So essentially there would be the option to click once and the image changes or if the mouse is held down the images scroll (when I say scroll, I mean goes to the next image and the next image and the next image automatically, instead of doing it through individual clicks).
I want to layer .jpg images that I have loaded into my sketch and then when the mouse is pressed/clicked on one of those images it disappears or goes opaque or simply is not visible and only the images below it become visible. Please HELP!!!