Roll-a-ball Tutorial Q&A

This is the official thread for discussion, issues and Q&A for the Roll-a-Ball project

Please use this thread if you have any questions, issues or feedback on this project.

Roll a Ball is a learning project on our Learn Site:

In your first foray into Unity development, create a simple rolling ball game that teaches you many of the principles of working with Game Objects, Components, Prefabs, Physics and Scripting.

-

The Roll-a-ball project has been updated to Unity 5. If you have questions re: the old version for Unity 4, please upgrade both your version of Unity and your project, please.

4 Likes

Thanks for the update and effort.

1 Like

So I just finished the old version of the roll-a-ball tut a couple weeks ago. Your sample projects are great learning resources, by the way. Is the code for the new version (and your other tutorials) available anywhere outside of the videos so I can compare or do I need to watch the new videos again?

thanks

1 Like

HI, i have a problem when i use de play mode to see the results of the script the ball just dont move. I’ve press all the keys buy it doesn’t move. Do you imagine what my mistake would be? I check the script and re-write it twice alredy but nothing change at all.

10 Likes

Normally, the code is available on the “Page” the video is embedded in. I have not yet added the new code for “Roll-a-Ball in Unity 5” yet. I will next week.

There are two parts to making things work. The scripting side, and the editor side. Often this is an issue of not setting the speed value in the inspector. Double check all steps, not just the code steps, but the steps taken in the editor.

1 Like

i have a tiny bity question on the “roll a ball” am trying to move the ball but its not working. why not?

Thank you very much for updating this!

I was going crazy trying to figure out what to do since I am a total noob. :slight_smile:

Thank you for this!

Just a minor issue. When I create the player and spin around the play area, he is really slow. Almost as if the weight is that of boulder as opposed to a marble in the videos.

Any thing I can change in the set up fix it?

Can you give us any additional information? Do you have any errors in the console? This could be many issues depending upon what step you are stuck on. In general, simply re-watch the last lesson or lessons from the last time it worked correctly, and pay attention to all the small detail, including values added in the inspector and spelling / capitalisation of items in the scripts.

You’re welcome! Our pleasure!

Can you give us any additional information? Do you have any errors in the console? This could be many issues depending upon what step you are stuck on. In general, simply re-watch the last lesson or lessons from the last time it worked correctly, and pay attention to all the small detail, including values added in the inspector and spelling / capitalisation of items in the scripts.

If you’ve checked your scripts and they are correct, it could be a step in the editor… Did you have a speed value?

Have you arrived at the step where a value for speed is created and you can vary the speed of the ball using this property in the inspector?

please please please please where is the touch keybord to moving the Player(Sphere)!!!

I don’t understand the question. Can you be a little more clear? I’m not sure what you mean by “touch keyboard”.

Isn’t he asking which keyboard key are used to move the player ? In which case, it’s the directionnal key of your keyboard.

I’m not sure if this is regarding touch input, which is not covered within the scope of the lesson… Or the keys, which are the arrow keys or ASDW, and should be covered clearly in the be documentation.

Yes, I have the public float variable and it shows in the inspector.

I’ve tried changing the speed in the inspector(1-100) and there is no change in the movement speed of the ball.

Either go back and check your steps, paying close attention to spelling, capitalisation and other subtle details, or post your code here for us to look at. If you do post code, please use code tags to format it correctly.