Scrolling problems
Posted: Sat Dec 31, 2005 3:58 am
Hi,
I'm trying to make a game where the view scrolls with the player.
(view.x = Thief.x - 120;
view.y = Thief.y - 160;
That works no problem)
Here's the catch. I want the view to stop when it gets to the edge of the "world", but let the player (the Thief) keep walking up to the edge of the screen. Kinda like the old verticle space shooters where you can move to the side, and the screen scrolls to a point, and your ship will move up to the edge of the screen.
I cannot have the view stop because of a collision because that is not available to the view object. I can have the Thief stop because of a collision, but then the view is to far over.
Any thoughts, ideas, suggestions, snyde comments?
I'm trying to make a game where the view scrolls with the player.
(view.x = Thief.x - 120;
view.y = Thief.y - 160;
That works no problem)
Here's the catch. I want the view to stop when it gets to the edge of the "world", but let the player (the Thief) keep walking up to the edge of the screen. Kinda like the old verticle space shooters where you can move to the side, and the screen scrolls to a point, and your ship will move up to the edge of the screen.
I cannot have the view stop because of a collision because that is not available to the view object. I can have the Thief stop because of a collision, but then the view is to far over.
Any thoughts, ideas, suggestions, snyde comments?