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

2011/12/9

getX() and getY(), what point is actually returned?

darkmist255 darkmist255

2011/12/9

#
When I use getX() or getY(), what point on the actor is actually returned? A corner, the middle?
bourne bourne

2011/12/9

#
The middle. An Actor's image is centered around its location
darkmist255 darkmist255

2011/12/9

#
Thanks :D. So if I were to use different resolution images (move up, down, left, right) it shouldn't give me funky results?
bourne bourne

2011/12/9

#
Same concept applies.
darkmist255 darkmist255

2011/12/9

#
Thanks :D!
You need to login to post a reply.