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

2014/2/28

Creating actors and placing them on the world dynamically

sghulam sghulam

2014/2/28

#
I am still not able to create actors and placing them on the world in response to a certain event. I know how to create objects within the actor's class in response to an event but this results in creating double the number of actors that are currently active in the world. I have been informed that I need to place the code in the world so that I can create one actor only. The event is detected in the actor class so how can I have the code in the world that can detect an actor event? Thank you.
danpost danpost

2014/2/28

#
That is funny. I had overlooked your last post of the other discussion thread and just a little while ago skimmed through older discussions and found your. I must have been constructing and answer to it at the same time you started this thread.
You need to login to post a reply.