Jump to content

Hello!

 

I'm following this unity tutorial and I came across a problem.

you can see at 17:50, he is setting up the player movement. At 25:22, you can see the console displaying coordinates. I am not seeing those when I'm running the game. I did add the script to the player and I think I wrote the code properly. Sometimes I can't see obvious problems and it takes a new person to look at it. Here's the script: 
using UnityEngine;using System.Collections;public class PlayerMovement : MonoBehaviour {	public float moveSpeed;	private Vector3 input;	// Use this for initialization	void Start () {		}		// Update is called once per frame	void Update () {		input = new Vector3(Input.GetAxis ("Horizontal"), 0, Input.GetAxis ("Vertical") ) ;		print (input);	}}
Link to comment
https://linustechtips.com/topic/185375-unity-player-movement-problem/
Share on other sites

Link to post
Share on other sites

nope... should I send you the unity file? How could i do that?

Zip it up, upload to mediafire and post download link here.

CPU: i7 4770k | GPU: Sapphire 290 Tri-X OC | RAM: Corsair Vengeance LP 2x8GB | MTB: GA-Z87X-UD5HCOOLER: Noctua NH-D14 | PSU: Corsair 760i | CASE: Corsair 550D | DISPLAY:  BenQ XL2420TE


Firestrike scores - Graphics: 10781 Physics: 9448 Combined: 4289


"Nvidia, Fuck you" - Linus Torvald

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×