I'm trying to make a game where when you touch the block, your character disappears, but at the last "Person" it says "cannot find symbol- variable
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* An obstical in this game
*
*
* 0.0.1-1.10.2017
*/
public class Block extends Actor
{
//Act command
public void act()
{
}
//Used for aranging the blocks
public void turn()
{
turn(90);
}
//For losing the game
public void eat()
{
if (isTouching(Person.class))
{
World world;
world = getWorld();
world:removeObject([u]Person[/u]);
}
}
}

