float TimX, TimY; //// positioning stuff float HeadX, HeadY; float BirdX, BirdY; float BirdDX;//////////define your stuff float BirdDY; void setup(){ size ( 640, 480 ); TimX= width/2; ///position,height and width of rectangle TimY= height-180; fill (100,100,100); rect(0,height/2,640,height); BirdX= width/8; BirdY= height/4; } void Bird() { fill (200,200,150);///bird triangle(BirdX+BirdDX,BirdY+BirdDY,BirdX+25+BirdDX,BirdY-25+BirdDY,BirdX-25+BirdDX,BirdY-25+BirdDY); //rect (BirdX, BirdY, 80, 10); } void draw(){ background (100,180,220); //Sky ground(); Tim(); // Bird(); //needed top put in draw so background would refesh BirdDX= BirdDX+1; BirdDY= BirdDY-1;////bird moves } void Tim() { fill (255,255,255); //tim rectMode( CENTER ); rect (TimX, TimY, 60, 110); fill (255,255,225); ellipse(TimX, TimY-80, 50,50); //Tims Head (Moves with body) } void ground() { //Grass ground rectMode(CORNER); fill (0,255,0); rect(0,height/2,640,height); } void mouseClicked() { TimX = mouseX;//Tims body moves with mouse TimY = mouseY; BirdX= TimX;// bird moves over tim when mouse is pressed // BirdY= mouseY-120;