Thank you very much for these tips everyone
The engine doesnt seem to recognize the c# files
spaceyjase
Here it is
- Edited
also i didnt follow the Documentation's instruction to setup C# with godot , i actually tried to follow the instruction from a video of this youtuber called Gamesfromscratch , here it is
Also , i *wasnt *able the tutorial completely , and in fact , the only way i found out that i could link godot to vs code through the editor settings was by accident ! And it worked fine .... until now .
Jesusemora
well it was the tasks.json part i was having a problem in when i was following gamesfromscratch's video , i think i should have paid heed to it
- Edited
I have installed an older version of godot ( godot 3..5.3) , and c# seems to be working fine there , although i dont know how to setup vs code there , i am more than willing to adjust
averageCOMRE Try to run a C# script in a fresh project, without any VSC involvement. That way you'll know if the issue is with Godot or with VSC setup.
well it did
i wrote a code which printed "hello world" [ GD.print( "Hello world" ) ], in the default text editor of godot , and it ran fine . so this means that there is problem with the setup of vs code , but please do keep in mind that i did this in godot 3.5.3
- Edited
averageCOMRE I meant to try it in the exact version you were setting up VSC for.
well in that case i had already did it
it didnt work
averageCOMRE well in that case i had already did it
it didnt work
You've typed a simple C# script directly into Godot's text editor in a completely fresh project? Then rebuild and pressed play?
It "didn't work" in what way?
well yes , it is giving the same error as before , that it could not instance the script because the associated class could not be found
averageCOMRE Could you attach this fresh project here?
- Edited
the problem seems to have magically solved itself , i can now run scripts c# nicely . Although i have a bit of a doubt , how do i balance game dev and c# coding in general? Like game dev is my main priority but making c# applications seems hella cool to me aswell , i just want a way to balance both these things nicely .
Also sorry for being inactive for so long, got carried away by school work