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!
1