We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi guys, I'm super new to Processing so the solution is probably something obvious.
I'm trying to create a sketch which wouldplay a show a different image and play a different song depending on where the mouse is positioned. I managed to write a code which would work depending where the mouse is pressed. So i decided to use that same code but to try and make it work depending on where the mouse is postioned. But when i took away the "void mousepressed' function and joined the code into "void draw" only the images change with the position of the mouse, the audiofiles don't really play... Only the first couple of seconds of the first audio plays before restarting itself and whenever I move the mouse around i can hear random low noises (i guess of the audios trying to play, i'm not sure). I'm super confused by this and would be grateful if anyone could help me!