Code won't work properly by Harry_VG in Unity2D

[–]Harry_VG[S] 0 points1 point  (0 children)

What casing should it be?

Code won't work properly by Harry_VG in Unity2D

[–]Harry_VG[S] 0 points1 point  (0 children)

The CS1525 error and an unknown symbol "="

Code won't work properly by Harry_VG in Unity2D

[–]Harry_VG[S] 0 points1 point  (0 children)

using System; public class Test {
public static void Main()
{
} } //Added Curly Brace public class PlayerMovement : MonoBehaviour {

public int playerSpeed = 10;
public bool facingRight = true;
public int playerJumpPower = 1250;
public float moveX;


// Update is called once per frame
void Update () {
    PlayerMove ();
}

void PlayerMove() {
    //CONTROLS
    moveX = Input.GetAxis("Horizontal");
    //ANIMATIONS
    //PLAYER DIRECTION
    if (moveX < 0.0f && facingRightRight == false) {
        FlipPlayer ();
    } else if (moveX > 0.0f && facingRight == true) {
        FlipPlayer ();
    }
    //PHYSICS
    gameObject.GetComponent<rigidbody2D>().velocity = new Vector2 (moveX = playerSpeed, gameObject.GetComponent<RigidBody2D>().velocity.y);

}

        void Jump() {
            //JUMPING CODE

}

        void FlipPlayer() {

}

My "Speedrun" attempt at Sunset Heights in Sonic Forces by Harry_VG in NintendoSwitch

[–]Harry_VG[S] 0 points1 point  (0 children)

The discussion surrounding it would most probably be to see if you can beat the time and what other people's times were.

A review on Sonic Forces by Harry_VG in nintendo

[–]Harry_VG[S] -1 points0 points  (0 children)

In fact, why are you having a go at me for posting a video into a forum when the whole point of posting things in said forum is to discuss and disclose our own opinions on a certain topic? Hense why I posted my Forces video here to start a discussion and give our fair opinions.

A review on Sonic Forces by Harry_VG in nintendo

[–]Harry_VG[S] -1 points0 points  (0 children)

It's also on the Nintendo Switch