I made a second level, for my game. every one of the actors works fine there. except for my shot actor which is firing.. well what else but shots.. but these shots go halfway across the screen and i get error Any help on fixing this would be greatly appreciated!
java.lang.ClassCastException: Space2 cannot be cast to Space at Shot.hitAnAsteroid(Shot.java:59) at Shot.act(Shot.java:37) at greenfoot.core.Simulation.actActor(Simulation.java:565) at greenfoot.core.Simulation.runOneLoop(Simulation.java:523) at greenfoot.core.Simulation.runContent(Simulation.java:213) at greenfoot.core.Simulation.run(Simulation.java:203) java.lang.ClassCastException: Space2 cannot be cast to Space at Shot.hitAnAsteroid(Shot.java:59) at Shot.act(Shot.java:37) at greenfoot.core.Simulation.actActor(Simulation.java:565) at greenfoot.core.Simulation.runOneLoop(Simulation.java:523) at greenfoot.core.Simulation.runContent(Simulation.java:213) at greenfoot.core.Simulation.run(Simulation.java:203) java.lang.ClassCastException: Space2 cannot be cast to Space at Shot.hitAnAsteroid(Shot.java:59) at Shot.act(Shot.java:37) at greenfoot.core.Simulation.actActor(Simulation.java:565) at greenfoot.core.Simulation.runOneLoop(Simulation.java:523) at greenfoot.core.Simulation.runContent(Simulation.java:213) at greenfoot.core.Simulation.run(Simulation.java:203)