This is my Script(I copied it from a tutorial and tried to fix the errors):
using System.Collections;
using System.Collections.Genric;
using UnityEngine;
public class Movement : MonoBehavour
{}
public float moveSpeed;
float SpeedX; speedY
Rigidbody2D; rb
Start()
{
rb = GetComponent();
}
void Update()
{
speedX = Input.GetAxisRaw(“Horizontal”) = moveSpeed;
speedY = Input.GetAxisRaw(“Vertical”) = moveSpeed;
rb.velocity = new Vector2(speedX, speedY);
}
what do you think is wrong with it?
(PS and please learn to use the code tags)
it says error code CS8803 and wants me to enter safe mode
I tried to copy a script from an other game, but something went wrong, a fatal error popped up and the file was broken, but I had a save from earlier today, so I only lost some progress in the script
I finally found a script, that works, here’s the link:Unity Top-Down Movement Controller - Pastebin.com
so the class followed by {} followed by what is now random junk is not a hint? it even tells you which line it hates