Pong help

Ha-ha. It seems I’m moving backwards when it comes to learning Unity. I can’t really figure out why Unity is ignoring my code. Maybe it’s not ignoring it, I just don’t have it set up correctly. Well, no “Maybe”… of course I don’t have it set up correctly. It’s all my fault, like global warming and pollution. They’re also both my fault.

I’m going to link to an upload of my project here. I’m trying to follow this tutorial. I’m about 2/3 of the way through the tutorial right before the “rackets_moving” part where it says " If we save the Script and press Play then we can now move the rackets:".

I try to follow the tutorial but I don’t see what I’m missing. I can’t move my rackets for some reason. I’ll make note of how I messed up in this tutorial because I know it has to be something stupid that I’m doing and I want to make note of it so I don’t want to repeat this error. Could someone who knows a bit more about Unity please download my project and tell me what portion of this tutorial am I missing?

hey man,

i know it is kinda late and not a answer to your queation but… did you fix the problem?? i have the same problem and cant find a way to fix it. so if you still know how you’ve fixed it you would help me a lot

Please don’t hijack old threads for new questions. Start your own new post… it’s FREE!

How to report your problem productively in the Unity3D forums:

http://plbm.com/?p=220

To help gain more insight into your problem, I recommend liberally sprinkling Debug.Log() statements through your code to display information in realtime.

Doing this should help you answer these types of questions:

  • is this code even running? which parts are running? how often does it run?
  • what are the values of the variables involved? Are they initialized?

Knowing this information will help you reason about the behavior you are seeing.