public void fireball()
{
if (Greenfoot.isKeyDown("r"))
{
World MyWorld = getWorld();
MyWorld.addObject(fire, 0, 0);
fire.setLocation(getX(), getY());
fire.setRotation(getRotation());
}
}