class Wooh { float x,y; // variables for location of wooh float speed; // Speed of wooh color c; Wooh() { x = random(width-50); // start with a random x location y = -random(0, 50)*50; // start a little(?much more) above the window speed = 3; // pick a random speed c = color(255,0,0); // color // } // move the wooh down void move() { y += speed; // Increment by speed } void touch() { if( abs(x-zoog1.x) < 40 && abs(y-(zoog1.y-100)) < 20 ) { y = 500; } } // Display the raindrop void display() { fill(c); noStroke(); image(woohImg, x, y); } }