x


2.5D Platformer Camera

Hi I'm having trouble with my camera I'm making a 2.5D game and i cant get the camera to follow the player because if i attach the camera to the player the camera follows the movement but flips over the other side how can I script this?

more ▼

asked Mar 19, 2011 at 10:42 PM

Aydan gravatar image

Aydan
210 105 77 85

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

parent the camera to an empty game object with a rigidbody and freeze rotation selected (under the rigidbody's inspector properties) parent this to the player.

more ▼

answered Mar 19, 2011 at 10:56 PM

AngryOldMan gravatar image

AngryOldMan
2.7k 37 36 67

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5110
x364

asked: Mar 19, 2011 at 10:42 PM

Seen: 2800 times

Last Updated: Mar 19, 2011 at 10:42 PM