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
1
Question by Farore · Apr 07, 2011 at 09:03 AM · movefirst-person-controller

First Person Controller Wont Move

Hi, I'm new to this Unity, and I tried to put a first person controller on my terrain, and it wont move, no matter what I do. It is the one that comes with unity when you download it. I have the free version. And I have no understanding of scripts yet. But no matter what I do, I simply cannot get my person to move. I can get it to look around, but not to move. Please help!

Comment
Add comment · Show 3
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 shihe · May 12, 2013 at 08:11 PM 0
Share

Hi everyone, I come here because I'm REALLY REALLY desperate.

I'm usually "that" guy which has the most absurd problems with any software, sometimes so basic that the answer is nowhere to be found, and it hinders my progress on anything I set out to do.

Today is no different... I'm trying to make a really basic FPS thingy in Unity3D. People told me it was a simple drag+drop of a First Person prefab. And apparently it is. Except in $$anonymous$$Y case, the character capsule won't $$anonymous$$OVE, won't LOO$$anonymous$$, won't JU$$anonymous$$P. It just sits there staring at wherever the camera is pointing with absolutely NO input reaction.

Please, I beg any of you for all that's holy HELP! I'm tired of being stuck by the most ridiculous of things! (And if it helps, I really absolutely SUC$$anonymous$$ at scripting/coding)

Any generous soul out there, I'd really appreciate any help.

$$anonymous$$y set up is as simple as: -First Person -Plane (to walk on) -Cubes (to use as walls) -Lights (to light up the place and see where I should be going)

avatar image ExTheSea · May 12, 2013 at 08:12 PM 0
Share

I converted your answer to a comment. Answers should only be used to reply to the main question

avatar image fedesilvaponte · Feb 09, 2014 at 05:35 PM 0
Share

I have the same issue, none of the answers I've found worked for me. It would be nice to know if this is a bug, which appears to be.

7 Replies

· Add your reply
  • Sort: 
avatar image
18

Answer by massimoatcatnicdotit · Jul 16, 2015 at 12:20 PM

The Default Input is MOBILE devices. I have added one line in the FirstPersonController.cs at the end of Start Method:

CrossPlatformInputManager.SwitchActiveInputMethod (CrossPlatformInputManager.ActiveInputMethod.Hardware);

This fixes the problem

Comment
Add comment · Show 7 · Share
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 scottwdrummond · Jul 17, 2015 at 10:56 AM 0
Share

This fixed it for me. Thanks.

avatar image SirProIII · Aug 08, 2015 at 08:49 PM 0
Share

where is start method

avatar image vigneshhp200 · Feb 13, 2016 at 12:21 PM 1
Share

Select FPSController from hierarchy -> Find First Person Controller from inspector -> Select Edit Script by clicking the setting gear (Script will open in new window) -> find Start $$anonymous$$ethod and insert : CrossPlatformInput$$anonymous$$anager.SwitchActiveInput$$anonymous$$ethod (CrossPlatformInput$$anonymous$$anager.ActiveInput$$anonymous$$ethod.Hardware); at the end.

avatar image CaJerry87 · Nov 09, 2016 at 07:28 AM 0
Share

It works, good job thank you.

avatar image Droidabi · Feb 02, 2018 at 12:25 PM 0
Share

Its wrkng :)

Show more comments
avatar image
2

Answer by Nolirneen · Apr 07, 2011 at 09:17 AM

Welcome to Unity =)

You can go to Standard assets -> Character controllers -> Sources -> Scripts.

You should see a JavaScript file called CharacterMotor.

Drag that to your main camera in the hierarchy window. (Your main camera is the one that when you click play, your view goes to it.)

After that, you can click on your main camera and see on the right side the inspector and scroll down. Below should have some attributes; play around there to get the result you want in the end.

Go ahead and ask more questions - its a good way to learn, especially in this community. =)

Comment
Add comment · Show 1 · Share
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 shihe · May 12, 2013 at 09:56 PM 0
Share

Thanks for the quick answer!

Sadly, this did not help my issue, though it's good to know where to tweak the FPS character should things work normally.

Is there any sort of incompatibility issue that I may not be aware of perhaps? I'm using Windows 8, and I'm running Unity 4.

And just a re$$anonymous$$der: Neither the First Person nor the Platformer "characters" move. They just stand there doing nothing. In builds made by other people, I CAN move around and jump. BUt nothing I do makes it move.

avatar image
2

Answer by shopguy · Dec 06, 2015 at 06:20 PM

Wanted to add as comment, but not enough rep I guess...

To add to massimoatcatnicdotit's answer... if you have your build platform set to Windows Store, it defaults to a compiler define of MOBILE_INPUT, so you can either modify the script as stated, or under player settings, other settings panel, remove MOBILE_INPUT from "Scripting Define Symbols".

This has helped me for using the controller for prototyping Windows Store builds. In the long run I'll either have to use a different controller, or mod this one to correctly support today's modern world of mix/match of all kinds of input (i.e.-on my Windows tablet I often play games with a mix of touch and mouse input, sometimes even have my USB keyboard attached as well -- not to mention desktops with touch input).

Comment
Add comment · Show 1 · Share
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 ImperialDynamics · Jun 20, 2018 at 09:31 AM 0
Share

this is the best answer! For me it was a Windows Store game that had the issue and this suggestion worked beautifully. THAN$$anonymous$$S!

avatar image
0

Answer by newuzer · Aug 03, 2011 at 11:13 AM

I had the same issue and now sorted. This is how it is done. Click on file\ new project then select Character Controller.unity pakage. Then add a terrain to the project then drag a first person controller, press play button and it should move nicely.

Comment
Add comment · Show 1 · Share
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 jhalt9 · Jan 29, 2012 at 02:45 PM 0
Share

WHat if I am in the middle of a part

avatar image
0

Answer by attosec · Jul 27, 2016 at 07:47 AM

This is just a case when you build game for android platform..you would need to make some changes in the first person controller script .. If you wish to make it into the pc platform then just switch the platform to pc mode from file menu... Best of luck.

Comment
Add comment · Show 1 · Share
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 B_Madhukar · Nov 28, 2016 at 10:28 AM 0
Share

Thank a lot, It helped me, I made these changes "File->Build Settings->select PC,$$anonymous$$ac and Linux stand alone" click on switch platform

  • 1
  • 2
  • ›

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

20 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 avatar image

Related Questions

First Person Controller will not move 6 Answers

How to disable click to move on interface elements ? 0 Answers

move box forward 1 Answer

Enemy Jitters when i want him to stop a certain distance 0 Answers

Move an object relative to another object's axis 1 Answer


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