Question about the camera
azavega
Member Posts: 362
Hi again...
I need to know if by any chance it a way to get the coordinates of the center of the camera while its moving to constrain those values to an attribute... any help?
I need to know if by any chance it a way to get the coordinates of the center of the camera while its moving to constrain those values to an attribute... any help?
Comments
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
The center is camera.originX+240 , camera.originY+160 if it is not zoomed in or out
or constrain x to origin.x +160 and y to origin.y+240 for portrait
I believe that should do it.
You can change the origin, in my latest game bounty hunter I interpolate the origin position between 0,320,640 and 960 to create a scrolling effect between menu screens.
:-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Thanks again.... you guys rock...