Scrolling Game Development Kit Forum
SGDK Version 2 => Help, Errors, FAQ => Topic started by: v6v 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?
-
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.