Hey People, ive got a very basic script for my Main camera to follow my player. im creating a 2.5D platformer and im doing allot of fine tuning atm.
here is my code
var Target : Transform;
var distance = 5;
function LateUpdate () {
transform.position = Target.position + Vector3(0, distance, -30);
transform.LookAt (Target);
}
At the moment the ground/floor, takes up 50% of the screen real-estate. I want it to take up much less, is there a simple command i can use to do this? i have fiddled around with the (0, distance, -30) part but it isn’t relevant.
Any Suggestions?
[10641-screen+shot+2013-05-03+at+12.06.49+am.jpg|10641]
Hey davidc your question just keep popping up in my mail inbox :) Hm. Does it really not change when you put something else as the distance variable like 100. If not you could try to add something like transform.position = Target.position + Vector3(0, 0, -30) + (Vector3.up * height); //I called it height not distance here because it makes more sense to me
– ExTheSea