Hey guys,
A second question in one morning.. something that has been bugging me.
I have been following the great guide by Mike Geig at fixbyproximity.com, and have made a background for my character to walk on.
However, I want the "background" or map to be much larger than one screen worth, and so have designed a tile background.
The problem is, that the "camera" or viewpoint of the player, doesnt move.
So, the players character can move off screen, ostensibly on to the different areas of the mapped background, but can no longer be seen by the player.
Alternatively, the mapped background is much bigger than what is seen on the screen, but the only way to see it is by including an "offset x and y" which moves the background itself, but then the players character is not connected to the background, it is as if the ground is moving out from underneath him but he stays in the same place.
If I were to leave the background not being able to move, have the character only bound by the maximum background size instead of WIDTH + HEIGHT (of the display), but have the players viewpoint/camera actually move instead around the background, tied to the players character, this would be a solution I would be very happy with.
Is this possible, and if so, how would I make it happen?
Cheers,
Toshi






