Fixed camera view from horizontal to vertical
by Ryan Jones · in Torque Game Builder · 12/02/2008 (4:26 pm) · 0 replies
Okay, maybe I'm going about this the wrong way but here's what I'm trying to do.
For my test game I'm recreating a level from Megaman 1, specifically Fireman's stage. In Megaman the camera view is always limited between certain Y values so if you're walking along the bottom of the level the camera doesn't let the player see too far down.
I've been able to copy this technique using the platformer camera behavior from your mini platformer tutorial. I created an objected, added the camera behavior to it, the object name is player, readjusted the world limits and select clamp. http://tdn.garagegames.com/wiki/TGB/Tutorials/Platformer/Camera
This works very well and horizontally I have no problems. The problem I do is when I want the camera to move from horizontal to vertical and still have a fixed view. What happens is as soon as I leave the world limit the camera doesn't move any further (like it should) but I want to have the camera with this fixed view move vertically now following the player. Then once at the top of this vertical section it would move horizontal again.
I've been trying to figure this out but I think I'm going about this the wrong way. Any help would be appreciated.
For my test game I'm recreating a level from Megaman 1, specifically Fireman's stage. In Megaman the camera view is always limited between certain Y values so if you're walking along the bottom of the level the camera doesn't let the player see too far down.
I've been able to copy this technique using the platformer camera behavior from your mini platformer tutorial. I created an objected, added the camera behavior to it, the object name is player, readjusted the world limits and select clamp. http://tdn.garagegames.com/wiki/TGB/Tutorials/Platformer/Camera
This works very well and horizontally I have no problems. The problem I do is when I want the camera to move from horizontal to vertical and still have a fixed view. What happens is as soon as I leave the world limit the camera doesn't move any further (like it should) but I want to have the camera with this fixed view move vertically now following the player. Then once at the top of this vertical section it would move horizontal again.
I've been trying to figure this out but I think I'm going about this the wrong way. Any help would be appreciated.
About the author
Creator and project manager of Lightsire Entertainment. http://www.lightsire.com