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

2013/4/18

Scroll World trouble

Draymothisk Draymothisk

2013/4/18

#
It might just be my code, but I can't seem to remove an object in my world (a subclass of a scroll world) without throwing an error. I have a square that is added to the world through the main actor, and as it shrinks to 2x2, it deletes itself. This doesn't cause an error on other scenarios for me, so I'm thinking the scroll world has something to do with it. Any help? getWorld().addObject(square, getX(), getY()); //adding the square from my main actor getWorld().removeObject(this); //removing the square from the square itself
Draymothisk Draymothisk

2013/4/18

#
Never mind.. I fixed it.
You need to login to post a reply.