This site requires JavaScript, please enable it in your browser!
Greenfoot back
Punithan35
Punithan35 wrote ...

2025/4/19

Hame a litt error

Punithan35 Punithan35

2025/4/19

#
so i was makeing game for my class test the class bunsarn have 2 error the 2 error say" Undeclaen method;filloval(int,int,int,int). so i will send the class busaen coade import greenfoot.*; import java.awt.color.*; public class bunsarn extends Actor { private int jada=5; public void addedToWorld(World Latar) { GreenfootImage Image=new GreenfootImage(100,100); Image.setColor(new Color(255,255,1,180)); Image.filloval(0,0,Image.getWidth()-1,Image.getHeight()-1); Image.filloval (20,0,Image.getWidth()-1,Image.getHeight()-41); setImage(Image); jada=5; } public void act() { if(jada>0)jada--; else getWorld().removeObject(this); } }
Super_Hippo Super_Hippo

2025/4/20

#
Try to use fillOval instead of filloval.
You need to login to post a reply.