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

2011/6/3

setX() Methode needed

schnatter schnatter

2011/6/3

#
Hello, the Actor class provides a getX/getY Method for obtaining the current position on the screen. Is there also a setX/setY Methode available to change the Position of an Actor on the screen? regards
nccb nccb

2011/6/3

#
There is a setLocation method that takes an x and y coordinate. To find out what methods actor has, double click on Actor, which should bring up the API documentation, then click on Actor and you'll see the list of methods available.
schnatter schnatter

2011/6/3

#
Thanks a lot :-)
You need to login to post a reply.