I am using C# in Godot, with Visual Studio as my external editor. I'm curious as to why it won't work, but also isn't giving me a single error message.
`using Godot;
using System;
public partial class sprite : Sprite2D
{
public override void _Ready()
{
SetProcess(true);
}
public void Process(float delta)
{
float AMOUNT = 5;
if (Input.IsKeyPressed(Key.W))
{
this.Position += new Vector2(0, -AMOUNT);
GD.Print("W key pressed. Position: " + this.Position);
}
if (Input.IsKeyPressed(Key.S))
{
this.Position += new Vector2(0, AMOUNT);
}
if (Input.IsKeyPressed(Key.A))
{
this.Position += new Vector2(-AMOUNT, 0);
}
if (Input.IsKeyPressed(Key.D))
{
this.Position += new Vector2(AMOUNT, 0);
}
}
}
`
I am brand new so there could be some rookie mistake in here. Any and all help is appreciated <3
(If it's important, I have also used Windows 11's copilot to help me debug, and so far it's helped remove all my errors I was getting before, but it still will not work.)