Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Platformer Character 2D Script Error [HELP]

Discussion in '2D' started by EpicSpacePanda, Jul 27, 2015.

  1. EpicSpacePanda

    EpicSpacePanda

    Joined:
    Jan 14, 2014
    Posts:
    4
    First of all: I am a 100% beginner, never used Unity in my life until now. I was using this tutorial:
    Around 8:45 in this video, he is about to test the game by pressing play. I followed all of the steps exactly, but I got this error for Platformer Character 2D (script): The associated script can not be loaded. Please fix any compile errors and assign a valid script. I am using Unity 5.1.2f1 (64-bit).
     
  2. Leo-Yaik

    Leo-Yaik

    Unity Technologies

    Joined:
    Aug 13, 2014
    Posts:
    435
    What is the error printed in the Console window?
     
  3. EpicSpacePanda

    EpicSpacePanda

    Joined:
    Jan 14, 2014
    Posts:
    4
    This:
    Assets/Standard Assets/2D/Scripts/Platformer2DUserControl.cs(3,27): error CS0234: The type or namespace name `CrossPlatformInput' does not exist in the namespace `UnityStandardAssets'. Are you missing an assembly reference?
     
  4. EpicSpacePanda

    EpicSpacePanda

    Joined:
    Jan 14, 2014
    Posts:
    4
  5. Leo-Yaik

    Leo-Yaik

    Unity Technologies

    Joined:
    Aug 13, 2014
    Posts:
    435
    You will need to import the folder CrossPlatformInput from the Unity Package that was used in the video as well.
     
  6. EpicSpacePanda

    EpicSpacePanda

    Joined:
    Jan 14, 2014
    Posts:
    4
    Alright, I added it, now what? I still get the error :(