i have a problem when my scroll actor bug removes every Scroll Actor and if i move the bug. throw an error explaining there is no bug in the world and really i donĀ“t know what to do because the bug is still there please help
there is the project i chose
http://www.greenfoot.org/scenarios/5806
and i put my code in the act of the bug for remove the every Scroll Actor
public void checaAnillo()
{
Actor anillo;
anillo=super.getOneIntersectingObject(ScrollActor.class);
if(anillo!=null)
{
ScrollWorld mundo;
mundo=super.getWorld();
mundo.removeObject(anillo);
}