float left=25; float top=25; float bottom=475; float right=475; float center=250; float ballX=250, ballY=250; float ballDX=3, ballDY=2; float jenniferX, jenniferY; void setup(){ size(500,500); fill(255); reset(); } void reset() { } void draw() { //// Next frame. //// scene(); action(); jennifer(); } void scene() { background(0); court(); line(250,0,250,500); } void court() { rectMode(CORNERS); rect (25,25,475,475); fill(225,10,200); stroke(255); strokeWeight(10); } void action() { ball(); collisions(); } void ball() { // move & draw // having trouble w/ the if statement ballX += ballDX; ballY += ballDY; ellipseMode(CENTER); ellipse (ballX,ballY,10,10); } void jennifer() { // jennifer's body // rectMode(CENTER); strokeWeight(5); rect(350,300, 50, 100); // jennifer's head // ellipseMode(CENTER); strokeWeight(5); ellipse(350,300-65, 25,25); fill(0,0,255); smooth(); } /* trying to figure out collisions - for below*/ void collisions() { //// Check crashing //++++++++++++ }