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 //// background(255,255,0); floor(); bill(); } void bill() { //// Move & draw Bill rectMode( CENTER ); fill (25,55,25); //Bill rect (BillX, BillY, 50, 100); fill (255,255,225); ellipse(BillX, BillY-60, 40,40); //head moves with body } void floor() { //Grass rectMode(CORNER); fill (0,250,0); rect(0,height/4,540,height); } void mouseClicked() { BillX = mouseX;// body moves with mouse BillY = mouseY; background(0); }