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.
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?
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.
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.
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.
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.
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?
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.
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.