float BillX, BillY; float HeadX, HeadY; void setup(){ size ( 500, 500 ); BillX= width/10; //height and width BillY= height/30; fill (20,200,2); rect(0,height/2,60,height); void draw() { //next frame scene(); action(); } void Bill() { fill (25,55,25); //Bill rectMode( CENTER ); rect (BillX, BillY, 50, 10); fill (255,255,225); ellipse(BillX, BillY-60, 50,50); //head moves with body } void ground() { //Grass rectMode(CORNER); fill (10,250,10); rect(0,height/2,540,height); } void mouseClicked() { BillX = mouseX;// body moves with mouse BillY = mouseY;