Making an object fall?
in
Programming Questions
•
1 month ago
Hello all,
I am totally new to processing...
Now, I would like to make an object fall towards the bottom of the screen and then out of the screen..
The object has to be spawned where the mouse is clicked..
void setup(){
size(500,500);
}
void mousePressed(){
if(mouseButton == LEFT){
noFill();
stroke(0);
ellipse(mouseX,mouseY,20,20);
}
}
As you can see I am able to spawn a circle where ever the mouse is clicked on the screen..
Now, how do I make the circle fall after it has been spawned!!!
Please provide a thorough explanation since I am a complete noob :)
THANK YOU!
1