LakeOtis wrote...
danpost wrote...
I do not think the name class should extend the You class (it should extend Actor). Also, you did not include your characters class code here.public class You extends characters
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class characters here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class characters extends Actor
{
/**
* Act - do whatever the characters wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
// Add your action code here.
}
}
setWorld(new forSale());
World shop; shop = new shop();