I have written the following code in Processgin IDE on my local machine and online on Processing.js editor at http://sketch.processing.org/. However, the latter does not show anything. The motive of the code is to make an image to seem as poping-out out of a hole.
I am new to Processing and I need help relating to the rotate() function. What I need is that a image is displayed at the cursor's coordinates and when the mouse is pressed, the image should rotate counterclockwise by 90 degrees at the cursor's coordinate itself. How to accomplish this? Also, I am currently confused as to what translate() does. Any explanation would help.
I am new to Processing. I have been building a simple game where one has to shoot some random moving birds. Although, it seems pretty simple, yet I have been stuck with the following problem: I need that once a bird has been shot, an image(of explosion/gunshot) should be displayed for at least 1 second. I tried using millis() to time the animation, but to no avail. Is there a way, such that two draw() functions be executed at the same time: one is the normal draw() and other of the object I want to display? Any workaround would be highly beneficial!