Camera actor limits, how to set?
Hi guys,
I'm trying to set a limit so that the actor which has a camera control will not end up showing whats beyond the boundary of the scene itself. As i have a double wide scene and keeping some off screen items there, i do not wish to see it during gameplay.
However when the camera actor gets too close to the sides i will be able to see the items beyond the game area it self.
How can i limit this camera area?
I'm trying to set a limit so that the actor which has a camera control will not end up showing whats beyond the boundary of the scene itself. As i have a double wide scene and keeping some off screen items there, i do not wish to see it during gameplay.
However when the camera actor gets too close to the sides i will be able to see the items beyond the game area it self.
How can i limit this camera area?
Comments
lots of trial and error to determine the correct area..
:P well discover something new everyday .
outer rectangle: Size everything in this area will show
inner rectangle: trackingArea the camera movement will occur in step with this are
for sideScrolling games it might be better to have the sceneHeight double and use that for off-screen items
@};- MH
I'll try and play around with the area tracking to see if it works nicely.