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 JoshuaCreates · Mar 25, 2015 at 07:20 AM · errortutorialballbounceroll

Roll-A-Ball Problem

Hi guys, I know I sounds super stupid for having issues with the easiest tutorial there is, but I'm a 12-year-old newbie who wants to learn to develop, so don't judge! Anyways, I'm on part four of the tutorial, Roll-a-ball, and I've just wrote the script it told me to write, seemingly perfect (I've checked, I can't spot errors), but my ball has suddenly bounced up into space, and then it falls down and bounces again. I'm baffled as to how a script affecting the camera can have this affect, but then again... the player object is mentioned in it. Like I said, I sound dumb, but please help! I'd love to be able to develop games when I'm older, and starting young seems like a good idea.

Comment
Add comment · Show 4
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 Andres-Fernandez · Mar 25, 2015 at 07:23 AM 0
Share

Either post the code you added so we can find the problem or post this in the forums so you can get extended help. (although it seems like you are just applying the force on the ball in the wrong direction).

avatar image JoshuaCreates · Mar 25, 2015 at 09:17 PM 0
Share

I just posted the code above if that helps anybody :)

avatar image JoshuaCreates · Mar 26, 2015 at 02:44 PM 0
Share
 using UnityEngine;
 using System.Collections;
 
 public class CameraController : $$anonymous$$onoBehaviour 
 {
     public GameObject player;
     private Vector3 offset;
 
     // Use this for initialization
     void Start () 
     {
         offset = transform.position - player.transform.position;
     }
     
     // Update is called once per frame
     void LateUpdate () 
     {
         transform.position = player.transform.position + offset;
     }
 }
avatar image Kareem74185 JoshuaCreates · Jan 14, 2016 at 01:21 PM 0
Share

this script works but it doesn't allow the ball to move around the screen, the errors i was before hand are gone but now no movement is eligible

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Corefinder · Mar 25, 2015 at 11:37 PM

Try raising the ball higher in the air, I had a similar issue and it fixed it. Happy learning!

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

Answer by Darkyrue · Jan 16, 2016 at 04:27 PM

i am having a similar problem. i tried following the Script on the tutorial and it wouldn't let me open the game to mplay anmd make the the ball go move, move with wasd or the arrow keys or any other defualt buttomns used within other games to move objects and sprites around lol.... im tired and hate this lol....

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 Tain_M · Jan 17, 2016 at 10:31 AM 0
Share

If you are struggling with even getting play mode to open, then check your Console (the tab on the bottom left next to Project). That's where error messages, specifically those related to your code, are going to be. It could be that you never linked an object to a public variable, or you mixed up a few symbols, or you dropped a semi-colon or a bracket. What I found working through this tutorial was that any time everything seemed broken, I had missed a fairly small thing, and 3/4 of the time it was listed in the Console.

Good luck!

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

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

roll-a-boll tutorial-rotator error 1 Answer

Rolling ball on many boxes causes bounce 0 Answers

first time coding, getting "NullReferenceException: Object reference not set to an instance of an object" error 1 Answer

How to code in coins 1 Answer

How to predict where the ball will land after being hit by bat? 4 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