Hi I'm making a game that have 2 levels. When my actor get a flag in level 1, it brings him to level 2. It success and bring him to level 2, but when I place coin and want go get it, then a window pop up and says:
java.lang.ClassCastException: world2 cannot be cast to world
at orang.exit(orang.java:35)
at orang.act(orang.java:28)
at greenfoot.core.Simulation.actActor(Simulation.java:594)
at greenfoot.core.Simulation.runOneLoop(Simulation.java:552)
at greenfoot.core.Simulation.runContent(Simulation.java:215)
at greenfoot.core.Simulation.run(Simulation.java:205)
( I have actor "coin" and want to be use in level 1 and 2.. Can someone help me? Thanks


