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 daniel92wombat · Aug 17, 2014 at 11:00 AM · beginners

I can't move my player ball in game mode in Unity.

Hey There,

Yes, I am a rookie on Unity game engine but to me, this problem is strange, and it is even stranger because I have been following a tutorial of how to make a Roll-A_Ball game. http://unity3d.com/learn/tutorials/projects/roll-a-ball/moving-the-player

In this instance, I have attached a Csharp script, following the examples of the tutorial video to make my ball move on the groundplane.... However, for whatever reason, I can't move the ball in game mode. I don't think there are spelling mistakes in the script either. Here is the attached image to see my working situation. I have been using the variable of rigidbody. Add Force, using the Input.Get Axis to control the ball's movement.

If anyone can help, especially since I am still a low rank question user, then I would be super grateful and also help others if they had a similar problem too.

Many Thanks,

Daniel

alt text

screen shot 2014-08-17 at 11.32.09.png (172.6 kB)
screen shot 2014-08-17 at 11.33.25.png (67.0 kB)
Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by kaka24fan · Aug 17, 2014 at 11:31 AM

Are you sure you set speed to some value?

Comment
Add comment · Show 4 · 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 daniel92wombat · Aug 17, 2014 at 11:41 AM 0
Share

Hey $$anonymous$$aka24fan

When you mean set the value, I should actually put in a fixed float number in the script? In the tutorial (you can skip to almost the ending) I copy the script directly from the video, and he make the speed a public class for anyone to set the speed at any default in the inspector.

I hope this make sense, and thank for the suggestion so far :)

avatar image kaka24fan · Aug 17, 2014 at 11:48 AM 0
Share

If you assigned a value to speed in the inspector it should be fine, you shouldn't have to put a value in the script. Deltatime is the time in seconds that it took to complete last frame. $$anonymous$$aybe it's about 1/60 and the vector gets too small for the movement to be noticable? Try to set speed to a very large number, or put this in the code:

Debug.Log("Speed: "+rigidbody.velocity.ToString());

It should write to the console what your speed is. If it's 0 without any decimals than something else is wrong.

avatar image daniel92wombat · Aug 17, 2014 at 02:21 PM 1
Share

Hey $$anonymous$$aka24fan.

Thank you so much!

I gave this ago and it solve most of the issues, I also had to correct some of the Input buttons within the Input $$anonymous$$anager. The Debug help things! I am super grateful for this, it means a lot to a learner like me ahaha! :D

avatar image kaka24fan · Aug 17, 2014 at 04:08 PM 0
Share

It also means a lot to me, I've started learning game program$$anonymous$$g just this summer and this is the first time I managed to help somebody, that's a good feeling!

Good luck in the future, cheers!

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Tornado Twins level 5 fireball 1 Answer

Question about Unity_Scripting_Tutorial.pdf 2 Answers

What am I missing in Lego Micro Game Tutorial 4 Task 12? 0 Answers

Scrolling using button? 0 Answers

character lives 3 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