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

2015/1/8

Actor geht nicht ins feld

Jens3399 Jens3399

2015/1/8

#
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:681) at greenfoot.Actor.getX(Actor.java:157) at eis.<init>(eis.java:10) was hat das zu bedeuten
danpost danpost

2015/1/8

#
You cannot use 'getX" or any method that requires the actor be in the world in the constructor of an actor. public eis() { getX() }
xFabi xFabi

2015/1/10

#
Falls du das nicht verstanden hast, du wirst wahrscheinlich eine Methode wie getx() benutzt haben, das geht nicht Wenn dein Objekt nicht In der Welt ist Solche Fehler entstehen meistens wenn man das Objekt löscht(zB weil es angegriffen wird) und dann besagte Methode benutzt
You need to login to post a reply.