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

2012/2/9

addedToWorld

kiarocks kiarocks

2012/2/9

#
If an actor(actor2) inherits from another actor(actor1), and the inherited actor(actor1) has an added to world method, when you add the other actor(actor2), does the actor1 addedtoworld get called?
danpost danpost

2012/2/9

#
Put a System.out.println("anything"); statement in it and if the number of that type of actor in the world is the number of lines produced in the terminal, then...ok Have it print out "x = " + getX() + " y = " + getY()
kiarocks kiarocks

2012/2/9

#
Will try
kiarocks kiarocks

2012/2/9

#
Yay, it does! :)
You need to login to post a reply.