Hahahhahahah!! thanks alot!! the rave mode is great
so, i sort of merged a bit of code together (using raining circles) (Thanks blindfish)
//creating an array of Spot objects
Spot foo[] = new Spot[20];
int tRadius = 50;
boolean colFlag = false;
void setup(){
size(640,480);
for(int i=0; i<foo.length; i++){
foo[i] = new Spot((int)random(640), (-1)*tRadius, tRadius);
}
}
//this is my collision detection
boolean collisionD(int uX, int uY, int uW, int uH, int bX, int bY, int bW, int bH){
boolean col=false;
if(uX+uW/2 > bX-bW/2 && uX-uW/2 < bX+bW/2 && uY+uH/2 > bY-bH/2 && uY-uH/2 < bY+bH/2){
col = true;
}
return col;
}
void draw(){
background(50);
//draw mouse circle
ellipse(mouseX,mouseY,30,30);
for(int i=0;i<foo.length;i++) {
colFlag = collisionD(mouseX,mouseY,30,30,foo[i].getX(),foo[i].getY(),tRadius,tRadius);
if(colFlag==true || foo[i].getY() > 480){
foo[i].setX((int)random(640));
foo[i].setY((-1)*tRadius);
}else{
foo[i].setY(foo[i].getY()+1);
foo[i].display();
}
}
}
//our Spot class, this is a Spot object. Think of it as an actual spot with the properties X,Y,Radius(spotX,spotY,spotRadius)
class Spot {
int spotX, spotY, spotRadius;
//constructor it takes X, Y and Radius. This gets called when you write Spot whatever = new Spot(50,50,50);
Spot(int theX, int theY, int theRadius){
spotX = theX;
spotY = theY;
spotRadius = theRadius;
}
//sets the X value of the spot object
void setX(int newX){
spotX = newX;
}
//" y value
void setY(int newY){
spotY = newY;
}
//get the x value of the spot object
int getX(){
return spotX;
}
//" y value
int getY(){
return spotY;
}
//display the spot object
void display(){
ellipse(spotX,spotY,spotRadius,spotRadius);
}
void destroy(){
spotX = 0;
spotY = 0;
spotRadius=0;
}
}
Now i have what i kinda want working a bit, but im passing out.. i think now i need fix some variables inside..
But ill post an update in the next few days