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

2013/5/31

Problems with changing

JetLennit JetLennit

2013/5/31

#
I am having problems with this.... I have it to where it should touch the Door and remove all the items. But it doesn't... can anyone help? (I need this as soon as possible)
erdelf erdelf

2013/5/31

#
You want all actors removed when the cube touches the door?
JetLennit JetLennit

2013/5/31

#
Yes, after this works I will add new objects
erdelf erdelf

2013/5/31

#
oh, then your problem is easy to solve. first, call the change level method at the end of the act cycle of the cube and in the change level method change the first line to.
Levels l = (Levels) getWorld();
the problem was you was creating a new world and asked this new world to remove all actors, but you was expecting the active world to do something
JetLennit JetLennit

2013/5/31

#
Thank you!!!!!
You need to login to post a reply.