annalisa266 18.12.2022, 18:12 wie erhöhe ich ein punkt bei gloop nur um einz mehr? ich habe es so versucht zu machen [...] int punkte = 0; [...] double dist = Math.sqrt( Math.pow(frog1.gibX()-fly1.tafel.gibX(),2)+ Math.pow(frog1.gibY()-fly1.tafel.gibY(),2)); if (dist<50+25){ fly1.tafel.loesche(); punkte ++; } ...zum Beitrag Antwort von annalisa266 18.12.2022, 18:22 ich habe es geschft , danke! ...zur Antwort