This is a part of the code:
1 Actor worm;
2 worm = getOneObjectAtOffset(0,0,Worm.class);
3 if (worm != null){
4 getWorld().removeObject(worm);
5 }
When I compile the source I keep getting an "<identifier> expected" error at row 2.
I suppose its a simple problem, but I can't find the solution. What have I missed?