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

2016/11/12

why does an error come up saying fail if not in world for the simple code

Maanas23 Maanas23

2016/11/12

#
Actor actor2; actor2 = getOneIntersectingObject(actor2.class); Actor rock; rock = getOneIntersectingObject(rock.class); if (rock!=null && actor2!=null) { getWorld().removeObject(actor2); getWorld().removeObject(rock); }
danpost danpost

2016/11/12

#
What code is executed before that given? Show the entire method and the act method as well.
davmac davmac

2016/11/12

#
What does the error really say? Read all of the message.
You need to login to post a reply.