Author Topic: X and Y for Camera  (Read 2106 times)

v6v

  • Clever
  • Fanatic
  • ***
  • Posts: 500
  • Has renamed his project to Galaxy!
    • View Profile
    • My Developer Page!
    • Email
X and Y for Camera
« on: 2012-06-09, 10:23:47 AM »
If I needed to get the current view's X and Y, would I use the rectangle CurrentView's X and Y?

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: X and Y for Camera
« Reply #1 on: 2012-06-09, 11:50:10 AM »
I think you would use the main layer's CurrentPosition, which identifies where the top left corner of the layer is relative to the top left corner of the screen. So it's usually negative, but you can just switch the sign (make it positive) to get the position of the screen relative to the layer.