Hi there! First of all, I think this is extremely helpful and easy to use. Thank you for the upload :)
I've been trying to implement this into a platform game for college and it works perfectly until an object is removed from the game. In my case, a coin when the player collects it. I get the following error..
java.lang.IllegalStateException: Actor not in world. An attempt was made to use the actor's location while it is not in the world. Either it has not yet been inserted, or it has been removed.
at greenfoot.Actor.failIfNotInWorld(Actor.java:663)
at greenfoot.Actor.getX(Actor.java:157)
at sWorld.scrollObjects(sWorld.java:202)
at sWorld.act(sWorld.java:163)
at greenfoot.core.Simulation.actWorld(Simulation.java:571)
at greenfoot.core.Simulation.runOneLoop(Simulation.java:506)
at greenfoot.core.Simulation.runContent(Simulation.java:213)
at greenfoot.core.Simulation.run(Simulation.java:203)
I think i have it pinned to the array in the world class, and its still trying to place the object once removed. What would you recommend to fix this?
Recent Comments
2012/11/22
Scrolling SuperWorld
2012/11/22
Scrolling SuperWorld