Hit detection

I'm trying to do hit detection using invisible (not yet) rects over top of the image. For some reason these two rects keep moving up and down on the y-axis? Does anyone know how to easily stop it? If you move your mouse you will see the hits. They rects are stationary but when I log off the site and then log back on, the rects often have moved up or down the y-axis. Then I change the y variable to get them right and it just happens again. Thank you

https://openprocessing.org/sketch/429876

Tagged:
Sign In or Register to comment.