Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by Zympho · Apr 16, 2017 at 07:25 AM · scripting problemrigidbody

Roll a ball- Keys not working

I just need help with the roll a ball Tutorial https://unity3d.com/learn/tutorials/projects/roll-ball-tutorial/setting-game?playlist=17141 this one right here and mostly likely one after it because im new to coding games and everything i Have followed everything in this video to the very last point i have put screen next to screen to look at the coding and its the same i even try deleting the file and fresh starting two times already!! the main problem is The ball will not move when i hit the arrow keys and the WASD button so any suggestion or help would be amazing thank you!

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 Matthewj866 · Apr 16, 2017 at 10:17 PM 0
Share

Hi there, and welcome to the world of program$$anonymous$$g and games!

Unfortunately this isn't really enough information to go on - What have you tried? Can we see the code responsible for moving the ball? Does the ball have an instance of the $$anonymous$$onoBehaviour in question? Are your inputs set up correctly in the project settings?

As of right now an answer cannot be formulated, but with a bit more information it could probably be easily fixed.

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Matthewj866 · Apr 17, 2017 at 12:47 AM

@Zympho The issue is actually a very simple one - please take a note of the name of the class, and the name of the file. The name of the class is PlayerController but the name of the file is Playercontroller. While this issue might seem mundane, you might notice in the inspector that it's complaining the class file is invalid (see your first screenshot, "script cannot be loaded" under the MonoBehaviour). In regular C# and the .NET framework, this little tidbit would not be a problem, however, Unity manually loads the classes and files independently of Monodevelop and relies on the file name matching the class name exactly.

If you make the names match, it should fix the issue.

Please note Unity cannot compile unsaved changes in any external editor, so ensure you save your changes before trying to build again.

Also, I highly recommend installing Visual Studio 2017, it's much better and is designed for the language.

Hope this helps! And since you're new here, please remember to mark this as the answer if it fixes your problem!

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 Zympho · Apr 17, 2017 at 03:39 AM 0
Share

Thank you so much! I know who to go to now if i need help lol I accept the comment so i don't know if that marks the answer or not but thank you @matthewj866

avatar image
0

Answer by Zympho · Apr 16, 2017 at 11:18 PM

I couldn't reply to your comment for reason and im getting to the point im done with this and do something else since i can get barely any help starting out but the three picture below is whats going on i tried doing it on my own and the ball wont move and i even copied the code under that video to make sure i got it right and either way it just wont work any suggestion? is my coding wrong? or is it in the input manager setting? because i checked both of themalt textalt text @Matthewj866


screenshot-41.png (328.1 kB)
screenshot-42.png (80.3 kB)
Comment
Add comment · 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

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

138 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 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 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 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 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 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 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

Making a connection point system like robocraft 0 Answers

How do I make my "PlayerMovement" script and "Use Gravity" checkbox (rigidbody) enable when I click SPACEBAR in game? 1 Answer

Spawning a Ball going forward every 5 seconds error, help! 2 Answers

Script for object to follow player at set distance and rotation, 3D 0 Answers

How to rotate player to face moving direction? 2 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