void dothebluemchen() { bluemchen = new CL_bluemchen[TOMarray.length]; for(int i= 0; i 1){ pushMatrix(); rotate(Hbendr); beginShape(); vertex(Hbwidth/2,0); vertex(-Hbwidth/2,0); vertex(-Hbwidth*0.75/2,-Hheight); vertex(Hbwidth*0.75/2,-Hheight); endShape(CLOSE); translate(0,-Hheight); halm(Hbwidth, Hheight, Hbendr); popMatrix(); } else { //mach mir ne bluete! fill(108,0,0,90); ellipse(0,0,20,20); if (over == true){ textFont(sfont); pushMatrix(); translate(5,-10); rotate(radians(-80)); fill(108,0,0); text(BL_username+" "+BLtom,0,0); popMatrix(); } } } void update(){ if (active == true){ if ((mouseX >= xpos-2) && (mouseX <= xpos+2) && (mouseY >= ypos-100) && (mouseY <= ypos)){ over = true; } else { over = false; } } } void draw(){ if (active == true){ update(); fill(0,80); noStroke(); pushMatrix(); translate(xpos, ypos); BLb = BLb+(BLziel-BLb)*0.10; BLa = BLa+(BLb-BLa)*0.08; BLbend = BLa; BLbendr = radians(BLbend)*noise(xpos); if (BLa>15){ BLziel = -20; } if (BLa<-15){ BLziel = 20; } beginShape(); vertex(basewidth/2,0); vertex(-basewidth/2,0); vertex(-basewidth*0.75/2,-baseheight); vertex(basewidth*0.75/2,-baseheight); endShape(CLOSE); translate(0,-baseheight); halm(basewidth, baseheight, BLbendr); popMatrix(); } } }