Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by ConnahHill · Feb 19, 2014 at 12:27 AM · camerathird-personcharacter controllingthirdpersoncontroller

How to keep player moving in the same direction after camera change

So basically, I am creating a game that uses static cameras that change when the player character reaches a certain point on the screen, similar to Final Fantasy X/X-2. For now I am using the third person controller prefab that comes free with unity, for testing purposes as I haven't created my own character/movement script yet. However I have modified it by taking out the third person camera/camera script so that I can use my static cameras.

So far so good, the character moves in the direction that the player pushes, relevant to the direction of the camera. However, when I change cameras from one to the other, the player controls immediately change to being relevant to the direction of the new camera. This causes problems, such as when the camera changes from behind the player character, to a camera in front of them, they immediately change direction, (relevant to the second camera).

I have recently been playing Final Fantasy X-2, and this accommodates for this problem by continuing to move the player in the same direction, relevant to the first camera, until they let go of all directions, at which point the controls change to being relevant to the new camera.

Example: http://www.youtube.com/watch?v=QbMbBV3ozHw

At 21:34, the player is pushing the UP button to move the character forward. When the camera suddenly changes to the opposite direction (as the character moves through the door), they continue in the same direction even though the user is still pushing the UP button. The same thing happens again at 21:40 (this time with the DOWN button), when the camera is once again flipped to the opposite direction.

Does anybody have any advice for how I could modify the third person controller script to allow for this? Or would it be better to wait until I create my own control script? In this case, can anybody provide some tips for incorporating this into my own script?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image hichanbis · Nov 13, 2016 at 06:07 PM 0
Share

Looking for the same solution...

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

19 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How do I make a third person camera toggle that doesn't snap? 0 Answers

3rd Person Camera Collision 4 Answers

How to make camera rotate around player and move the player relatively 1 Answer

Third Person Camera 1 Answer

Third Person Platformer Controls 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges