Jump to content
Posted 06 April 2012 - 03:41 PM
Posted 06 April 2012 - 09:41 PM
Posted 07 April 2012 - 07:31 AM
Posted 07 April 2012 - 01:24 PM
Indeed. The typical way to do this is to "scroll" your background as you move, just as you would for a typical sidescroller (platformer) except your view is top-down instead of side-on. A "camera" object helps to keep track of where the player is actually looking, but for 2D purposes it's nothing more than a simplified frustum in the form of a bounding box.
I see where my post could have caused some confusion sry, i meant 2D and as i understand it there is no actual camera in 2D.
[(offsetX, offsetY), (offsetX + screen width, offsetY + screenHeight)]
Posted 07 April 2012 - 04:25 PM