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

2011/3/24

Get coordinates from world and put it an actor class?

The_Mac The_Mac

2011/3/24

#
Is it possible to get coordinates from the world class and put it an actor class? It is needed to be done from the actor class! If you don't understand, write and ill try to specify.
davmac davmac

2011/3/25

#
I don't understand! Perhaps you can explain what you're trying to achieve.
MathManiac MathManiac

2011/4/3

#
World currentWorld;
public WorldInfo(World w) {
currentWorld = w;
}
addActor(new WorldInfo(this));
Put the first piece of code in your Actor, and the second piece in the World.
You need to login to post a reply.