can someone please tell me what I'm doing wrong? it says "undeclared method" when I try to implement getWidth and getHeight
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
public class fizzingBubbles extends Actor
{
GreenfootImage image = getImage();
int size = 30;
public fizzingBubbles()
{
image = getImage();
image.scale(size,size);
}
public void act()
{
int fizzingBubble = Greenfoot.getRandomNumber(50);
if (fizzingBubble==4)
{
int x = Greenfoot.getRandomNumber(10)+getWidth()-50;
addObject(new fizzingBubble(), x, getHeight());
}
}
}