Hey! So im trying to make a decent enough controller, and im wondering why wont my play move on the y axis? Thanks in advance! (And i know, the code is almost finished)
if (Input.GetAxisRaw(“Horizontal”) == 1 || Input.GetAxisRaw(“Vertical”) == 1)
{
Debug.Log(Input.GetAxisRaw(“Vertical”));
rb.velocity = new Vector2(horizontal * speed, vertical * speed);
}
else if (Input.GetAxisRaw("Horizontal") == -1)
{
rb.velocity = new Vector2(horizontal * speed, 0);
}
else
{
rb.velocity = new Vector2(0, 0);
}