Sign in to follow this  

Unity How could i go about creating a custom camera script in Unity?

This topic is 1688 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm a little new to scripting, a general explanation of the functions i would need to use and/or a finished script with comments and outlines i could walk through myself would be useful (im not asking for free scripts, i'd probably edit and customize any if i got one to my tastes anyways.)

What i want is probably easiest explained using pictures. So here we go, crappy arts:

http://imageshack.us/a/img607/2549/75029023.png (site doesnt allow .png images? thats unhelpful.)


Woah, that turned out worse than i thought. xD anyways, the camera would roll backwards and look up when the mouse was moved until a certain point, and would roll forwards looking down, rather than just rotating to see more, it would move, more closely simulating a persons head when they look up or down, how could i accomplish this without using built in packages and scripts?

I'f this isn't very clear tell me what i should clarify so that its easier to understand. thanks ^u^ 

-nullie

Share this post


Link to post
Share on other sites

Hi Based on what i see on your image is that you want an FPC (First Person Camera) view?

 

actually you don't need a script to do that just create a First Person Controller and put it in your Game Object (Character).

the only thing is that you need to do is create a script that can move that camera with it (X,Y)

i've linked a website on how to create a first person view

 

i hope i've answered you question :D

http://docs.unity3d.com/Documentation/Manual/HOWTO-FirstPersonWalkthrough.html


 

Share this post


Link to post
Share on other sites

i actually wanted it so that the camera would roll back, rather than just rotate upwards, but someone else already suggested parenting it to an object, and having it rotate off center, this would have the effect i was aiming for. The link is more helpful than they were though, thanks ^^

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Similar Content

    • By loyalsheep
      Hey guys!
      Check out the trailer of Airavat. It's a minimalist, space survival game (and hard, very hard) 
      Download on GooglePlay: Airavat
       
    • By anomalystudiospt
      Hey, we are new around here!
      Our team spent the last year developing a prototype game called Rise of The Fey, a game that focuses on a dramatic story with a fast paced gameplay.
      Rise of The Fey is a third-person action-adventure RPG set within a fantasy world called Perrah. In Rise you control Kall, a young spaunian looking for revenge after the death of his beloved.

      We would appreciate if you could take a look at our stuff, tell us what you think and possibly help us out on Indiegogo.
      The prototype is in portuguese, sorry about that!
      Have a good one!
    • By juglar
      Hi guys, we are developing a game called BiteOff! based on Zombies topic. BiteOff! is based on a game strategy mechanics, free to play, where the player has a bunch of zombies and he can distribute them along the map landscape to be able to bite and transform all humans into each level. Humans are controlled by artificial intelligence and they differ each other on capabilities based on different weapons that give them three different levels of aggressiveness to defend against the zombies. The zombies are also presented in three types and they are differentiated by their attack, speed, strength and resistance abilities. Through different achievements, (time to eat all humans, score, among others) the player can access four extra skills that can enhance your attack in real time on next levels as power-ups.
      We are launching a crowdfunding campaign in kickico and we need some helps please visit us on the crowdfunding page https://www.kickico.com/es/campaigns/17824/biteoff-the-videogame 
      Twitter @biteoffthegame
      Facebook
      Clickme!
      Website 
      Clickme!
    • By Lord McMutton
      The world of Ethios is held aloft by massive trees known as the Pillars.
  • Popular Now