Hello, I believe there is a library or something that allows shapes to be used for objects, for example for mousePress, mouseX, and mouseY to determine if the mouse is hovering over a certain shape or image. For my last processing project, I used a series of for loops to detect if the mouse has entered or excited the boundaries of the shape. It did not work very well at all and was very laborious. If anyone knows the library I am speaking of or knows an alternative way to deal with this issue, I would be glad.
What I am trying to do is be able to click an object in a series of other objects that are clickable, have it follow the mouse, then put it within the boundary that it belongs (think a digital jigsaw puzzle).
This is what I am trying to do:
1. First, the screen is clicked, and the object transfers to the location of the cursor and follows the cursor.
2. The mouse button is released.
3. The mouse button is clicked again, and the object returns to its section of the screen.
Hello, I am having an issue where my processing application keeps freezing when I leave it running. Often, it freezes after I hibernate, leave my computer unattended for more than ten minutes, etc. I am running Windows 7 in 64 bit with 64 bit Java installed. What happens it that I will navigate to the processing window and it will turn gray (inactive mode). Then, the icon on the bar will turn to the Java cup logo. Windows does not give me the usual prompt the the program has not stopped running that I usually do when a program freezes. It does not respond to right click > exit; I have to go to the command prompt and exit the process that way.
Hello, I am a student in a class and it seems like me and my fellow classmates (and professor) are having difficulties with Processing being a stand-alone application. I was wondering if it could be installed, even though it has no setup.exe file, so that it could be accessed through the start bar like most other applications. Is there a command line prompt for this? Classmates in my classroom mostly run Windows 7, but I wouldn't doubt there are some Windows XP and Mac users in there as well.
I know I have done this before, I just can't seem to be able to search it online and get the information I need.
Currently there is one rectangle rotating around the center of the screen. What I was attempting was to draw a second rectangle to rotate next to the first. However, when I do this, the square seems to be rapidly moving from the left to the right side of the screen around the original rectangle.