This site requires JavaScript, please enable it in your browser!
Greenfoot back
Tasya16
Tasya16 wrote ...

2019/5/13

need help with error

Tasya16 Tasya16

2019/5/13

#
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:714) at greenfoot.Actor.getX(Actor.java:165) at Background1.scroll(Background1.java:19) at Rumah.act(Rumah.java:23)
Super_Hippo Super_Hippo

2019/5/13

#
You remove the actor from the world and then try to get the current position of the actor in its world. But it isn't in a world anymore.
You need to login to post a reply.