Hi everybody, im new to greenfoot and so im following their tutorials. However, varaiable getWorld() doesn't seem to be matching with my world class. Is there something i've missed out or do I need to use another method? Thank you
public void kill()
{
Actor Spider;
Spider = getOneObjectAtOffset(0, 0, Spider.class);
if( Spider != null)
{
CastleWorld castleworld;
castleworld = [b]getWorld();[/b] this bit doesn't work
castleworld.removeObject(Spider);
}
}
