Gozor firstGozor; Gozor secondGozor; void setup() { size(500,500); smooth(); framerate(30); firstGozor = new Gozor(width/4, height, -5, 0.1, color(14,227,26)); secondGozor = new Gozor(3*(width/4), height, -15, 0.5, color(240,12,214)); } void draw() { background(0); firstGozor.drawGozor(); firstGozor.dynamicMouth(); firstGozor.dynamicEyes(); firstGozor.jumpingGozor(); secondGozor.drawGozor(); secondGozor.dynamicMouth(); secondGozor.dynamicEyes(); secondGozor.jumpingGozor(); } void mousePressed() { if(mouseX > width/2) { //if mouse is on right side of screen... secondGozor.startJump(); //jump right Gozor } else { //otherwise, jump left Gozor firstGozor.startJump(); } }