Quantcast
Channel: Questions in topic: "side-scrolling"
Viewing all articles
Browse latest Browse all 99

Getting the camera to scroll when the player hits the edge of the screen?

$
0
0
Hi, Im fairly new to Unity and Im just trying out a few camera set-ups for a 3d side scrolling type game. What I would like to do with the camera is have it scroll ahead a set amount when the player hits the edge of the screen. Ive got an image here to help better describe it.![alt text][1] [1]: /storage/temp/108478-cam-test.png Basically, the camera would be at a set height and angle, but in the style of old side scrolling beat-'em-ups, I want the camera to advance when the player moves to the edge of the screen. This would show the next area (top red square). Alternatively, having the camera move as they came within a certain distance of the edge of the view would work too. I know how to get the camera to follow the player, but getting the camera to only move in certain instances is what Im struggling with. I can hopefully provide more info/examples if this doesnt make sense. TIA

Viewing all articles
Browse latest Browse all 99

Trending Articles