Intro to C# in Godot 3.1: Your First Script (tutorial)

  Рет қаралды 119,528

GDQuest

GDQuest

Күн бұрын

Пікірлер: 158
@channelnumber52
@channelnumber52 5 жыл бұрын
0:20 Windows install instructions 1:36 Linux install instructions
@nathan44u
@nathan44u 5 жыл бұрын
4:12 Install instructions end
@inanitas
@inanitas 4 жыл бұрын
@@nathan44u Most importantly. If you can't manage to install a simple program you'll also fail being a programmer tbh.
@nathan44u
@nathan44u 4 жыл бұрын
@@inanitas If you already installed and you don't want to see the instructions, go to 4:12
@MikeHalk100
@MikeHalk100 4 жыл бұрын
@@inanitas Way to be supportive: Asshat.
@ceilingfandev651
@ceilingfandev651 4 жыл бұрын
Me: cries in Mac
@williamsokol0
@williamsokol0 2 жыл бұрын
Best video I've seen on this yet, thank you
@nathan44u
@nathan44u 5 жыл бұрын
6:52 I believe the proper term is "PascalCase" compared to "camelCase" "snake_case"
@TheThirdLieberkind
@TheThirdLieberkind 5 жыл бұрын
WhAt AbOuT tHiS kInD oF cAsE?
@PrivacyGevoelig
@PrivacyGevoelig 5 жыл бұрын
There are two variants: starting with an uppercase letter, called UpperCamelCase (CamelCaseExample, sometimes called PascalCase) starting with a lowercase letter, called lowerCamelCase (camelCaseExample).
@imtiazahmad7826
@imtiazahmad7826 5 жыл бұрын
new one i used Use_thisFrom_Now
@bugseater1
@bugseater1 4 жыл бұрын
@@TheThirdLieberkind ShIt CaSe
@ccgb92
@ccgb92 4 жыл бұрын
@@bugseater1 lol
@OverloadedOrama
@OverloadedOrama 5 жыл бұрын
Can you use multiple languages (like C# and GDScript) in the same project?
@bexplosion
@bexplosion 5 жыл бұрын
Yes
@addicted2p0rn
@addicted2p0rn 4 жыл бұрын
@@bexplosion Is C#... safe yet with Godot? I get a message when I open my first project. Essentially it says, "C# is usable but is not meant for production." I downloaded the Mono version for the "C# Support", does that mean it's the only version you can use C# in or does that mean it has more exclusive/advanced C# features? I don't want to do anything crazy under the hood with C#, I just want to use C# for basic game scripts.
@standinonstilts
@standinonstilts 4 жыл бұрын
@@addicted2p0rn mono version is the only version you can use c# with. The default version only supports gdscript. C# acts as an alternative to scripting with gdscript; they are interchangeable.
@nenyashamajoboro3770
@nenyashamajoboro3770 4 жыл бұрын
@@standinonstilts and to finish it off, c# if said to be unstable when exporting to UWP/Windows Universal
@garyproffitt5941
@garyproffitt5941 Жыл бұрын
@@bexplosion confirmed
@Abhishek-bu1eu
@Abhishek-bu1eu 5 жыл бұрын
are u gonna make a full series
@Gdquest
@Gdquest 5 жыл бұрын
No, we're going to focus on GDscript. This video is part of our series on new features and improvements in Godot 3.1
@khaledz2608
@khaledz2608 5 жыл бұрын
GDquest there is people who want to use c#
@dynomitediamond6296
@dynomitediamond6296 4 жыл бұрын
@@khaledz2608 take a basic C# tutorial, then all of the same functions carry over, but in PascalCase
@illford
@illford 3 жыл бұрын
@@dynomitediamond6296 CamelCase not PascalCase
@JK92007
@JK92007 5 жыл бұрын
please make a 2d platformer game tutorials using C#....
@paulo0651
@paulo0651 4 жыл бұрын
Exactly. We need that, please.
@paulo0651
@paulo0651 4 жыл бұрын
Still need it.
@miqerman
@miqerman 3 жыл бұрын
yes
@platinumdiamond7
@platinumdiamond7 3 жыл бұрын
@@paulo0651 In the Godot documentations. You could switch to how it looks in C#
@simplegameprojects6099
@simplegameprojects6099 3 жыл бұрын
how do we get the assets you used for the tutorial?
@ArchimedesTrajano
@ArchimedesTrajano 4 жыл бұрын
1:34 if you have chocolatey ... choco install netfx-4.7-devpack dotnetcore
@sal_strazzullo
@sal_strazzullo 4 жыл бұрын
Gj for mentioning it 👍
@Mainman0011
@Mainman0011 4 жыл бұрын
Oo nice, this worked great for me. Thank you
@krophiquon
@krophiquon 2 жыл бұрын
at 11:27, after saving the player as a scene I am unable to move it. I don't get a handle for the node.
@krophiquon
@krophiquon 2 жыл бұрын
nvm, i restarted the project at one point and when i was re-making it I forgot to create the Player node as a kinematic element.
@rashidnexkoyotl7524
@rashidnexkoyotl7524 4 жыл бұрын
6:50 What's that color theme?
@paulo0651
@paulo0651 4 жыл бұрын
Dark, I guess.
@PowerSkor
@PowerSkor 5 жыл бұрын
Very helpful!
@nedstarkx5637
@nedstarkx5637 2 ай бұрын
How to sync VS Code so that it shows suggestions for Godot functionality?
@NosebleeddeGroselha
@NosebleeddeGroselha Жыл бұрын
I want to make a game that works at it's best with mods, people can add levels, characters and items as they please. If I program my game in GDScript, would they be able to add mods programmed with C#? Or vice versa? I was thinking of programming my game in C# because it's more universal, someone who never used Godot but can code in C# would have (I assume) an easier time modding my game. But I had that idea because I thought the whole game had to be coded in one language, is that the case? Or it depends?
@miguelcabaero5843
@miguelcabaero5843 4 жыл бұрын
what if it says build failed what do i do?
@eazystudio
@eazystudio 4 жыл бұрын
same here
@floorbeardthepirate1141
@floorbeardthepirate1141 4 жыл бұрын
I followed all of the instructions for windows but when I hit build in my Godot project it gives me this error message: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1180,5): error MSB3644: The reference assemblies for .NETFramework,Version=v4.7 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at aka.ms/msbuild/developerpacks [C:\Users\delux\Documents\C# Error Message\C# Error Message.csproj] This is the code I'm trying to run: using Godot; using System; public class KinematicBody2D : Godot.KinematicBody2D { // Declare member variables here. Examples: private int speed = 2; public override void _PhysicsProcess(float delta) { if (Input.IsActionPressed("move_right")) { // Move as long as the key/button is pressed. position.x += speed * delta; } } }
@καλαμ
@καλαμ 4 жыл бұрын
It tells you what's wrong in the error. You are missing .NET Framework 4.7 SDK.
@floorbeardthepirate1141
@floorbeardthepirate1141 4 жыл бұрын
@@καλαμ Thank you! I am a beginner to programming in general, so its nice to have some help! I know this may have sounded like a pretty silly question, but I am grateful to you for answering it! Wishing you a Happy Holidays!
@καλαμ
@καλαμ 4 жыл бұрын
@@floorbeardthepirate1141 No worries mate! It wasn't a silly question at all. Error codes can be quite difficult to read if you are a beginner. Good luck on your game dev journey and happy holidays!
@doomvegan9697
@doomvegan9697 4 жыл бұрын
I'm not sure this is ready for C#. I've spent three hours trying to get both studio code or mono develop to work. I can get gd script to work fine. Mono editor can't be found and whenever I create a script in c# with vs code, it throughs a compile error.
@doomvegan9697
@doomvegan9697 4 жыл бұрын
update with the help of a main coder got it working finally. The nuget xml file was corrupted or something. No idea how but got it running finally. 5 hours to get the environment going.
@PeskySpyCrab
@PeskySpyCrab 4 жыл бұрын
4:46 slow down mate
@arielgimenez_95
@arielgimenez_95 5 жыл бұрын
Please tutorial NODES IN GROUP with C#
@sal_strazzullo
@sal_strazzullo 4 жыл бұрын
Does the C# Godot version run on Android, MacOS and iOS?
@GrandNecro
@GrandNecro 2 жыл бұрын
I hate camelcase. any way to get a version with underscores?
@xrenynthemusicmage6422
@xrenynthemusicmage6422 3 жыл бұрын
That video could really benefit off of timestamps/video chapters
@Bebs_
@Bebs_ 4 жыл бұрын
When I run the game, I can only move to the right and no other direction. Why is this?
@faucar93
@faucar93 4 жыл бұрын
Dude please I am having this error since I decided to press the build button Message: Building solution configuration "Tools|Any CPU".
@elchippe
@elchippe 5 жыл бұрын
Why you have to download MSBuild in Windows? Why just can work with with the Mono SDK like Linux?
@thatcipher
@thatcipher 4 жыл бұрын
I did everything as showed in the video but intellisense doesnt recognize any methods from godot. Does anyone know a fix?
@ThoolooExpress
@ThoolooExpress 4 жыл бұрын
Did you get notifications coming up saying "some projects had trouble loading" or the like? Although Godot supplies its own Mono runtime and SDK to use when it actually compiles and runs your game, you still need to supply one installed the normal way for the C# extension of VsCode to use. (Currently) it needs version 4.7 of .NET (NOT CORE). This can be satisfied by either the OG .NET framework and SDK on Windows (install either through visual studio or from the standalone installer), or a recent version of Mono on Linux / MacOS. Also bear in mind that the C# extension actually isn't done installing when it tells you to restart VsCode. It still has to download and install a few components (the Omnisharp Server) after the first time you start it. It usually takes seconds on very fast internet to a few minutes on a bad connection. There is a little flame icon near the bottom of VsCode that will either tell you the installation progress or that the server is running and ready to use when you hover over it.
@thatcipher
@thatcipher 4 жыл бұрын
@@ThoolooExpress yeah I already figured that out by myself. I needet to install .NET 4.7 But thank you anyway!
@lydietuekam7872
@lydietuekam7872 2 жыл бұрын
And what about Kali? Is it the same
@wilsonvoorhees
@wilsonvoorhees 4 жыл бұрын
Sotaque brasileiro hehehe boa mano !
@domettal
@domettal 4 жыл бұрын
foi o que pensei qdo ouvi ele falar
@cearaj405
@cearaj405 4 жыл бұрын
GG
@mouadovic
@mouadovic 4 жыл бұрын
i got this message in my terminal "EditorSettings::_get - Property not found: mono/editor/editor_path_optional At: editor/editor_settings.cpp:151" any solutions?
@spacefishaviation276
@spacefishaviation276 3 жыл бұрын
dont use path, use Mono - Editors its an option there if its installed on PC
@Destroyer19941995
@Destroyer19941995 3 жыл бұрын
I followed every step and I keep getting errors C:\Users\infer\.nuget\packages\godot.net.sdk\3.3.0\Sdk\Sdk.props(29,11): The SDK 'Microsoft.NET.Sdk' specified could not be found.
@beastcraft7387
@beastcraft7387 2 жыл бұрын
Do you have Microsoft .NET framework installed?
@nurwaneduardo7831
@nurwaneduardo7831 3 жыл бұрын
Godot mono is all offline?
@walney2008
@walney2008 5 жыл бұрын
no visual studio code, dll external , what reference ?
@christophersootoo9168
@christophersootoo9168 5 жыл бұрын
3:40 What is eMac? What is going on? 🤨
@SoftBreadSoft
@SoftBreadSoft 5 жыл бұрын
emacs is a text editor. you can use whatever you want, ignore that part of the video
@eazystudio
@eazystudio 4 жыл бұрын
what is your build set to
@TheGios100
@TheGios100 5 жыл бұрын
Are you Brazillian? You have a little bit of brazillian portuguese accent
@GreenMagic0
@GreenMagic0 3 жыл бұрын
No! He is from France!
@ozielpime
@ozielpime 2 жыл бұрын
please! i need make a car in godot but using c# and in 3d view, please make or indicate a video
@JVJF7
@JVJF7 5 жыл бұрын
Why use C# when you can use Gdscript/python? What are the advantages?
@MaxLothaire
@MaxLothaire 5 жыл бұрын
C# has slightly better performance , and it reduce the engine learning curve for ones who come from Unity or other engine using C#.
@jonastamosevicius7236
@jonastamosevicius7236 5 жыл бұрын
Also it is important to mention that C# is OOP and strongly typed programming language so the code is so much cleaner and more organized and C# is one of the libraries of .NET framework that means that you can use so many features of it - Web API's, API's very easy and useful using C#, Databeses with EF framework, C# is very powerful language :)
@BeerfootBandit
@BeerfootBandit 5 жыл бұрын
@@MaxLothaire you are 105% correct. I'm using unity now but I want to try godot
@jacobhinchliffe6237
@jacobhinchliffe6237 5 жыл бұрын
@@jonastamosevicius7236 C# > Java
@rat4289
@rat4289 5 жыл бұрын
when you only know c# you dont need to learn something else
@maitreyeesinha2230
@maitreyeesinha2230 5 жыл бұрын
I have got a pretty beefy system,yet every time I play the game both Godot and the Godot game crashes . I am running linux : elementary os 5.0 Juno. pls help
@gachastorys5129
@gachastorys5129 3 жыл бұрын
i mean no hate but can you explain why you like linux? idk it just seems wierd because its soo limited than say windows or mac and installing thing on it is just really difficult for no reason i hope you can give a response (again no hate i just want insight)
@burak_gulmez
@burak_gulmez 5 жыл бұрын
C# or gdscript? Is there performance advantages of any language?
@junpeiiori4720
@junpeiiori4720 5 жыл бұрын
C# is not fully integrated into the engine as of now but it is still being worked on. If you want to make something publishable with Godot and without too much headaches, go with GDScript. Personally I prefer C# but now it is too cumbersome to code with in Godot. As for performance, a benchmark was made a couple of months ago that stated C# as the winner but GDScript is not that far behind.
@SvetomechTheRainwildsKeeper
@SvetomechTheRainwildsKeeper 5 жыл бұрын
C# performance in godot is much better actually
@JVJF7
@JVJF7 5 жыл бұрын
@@junpeiiori4720 Can you still compile working apk's when you choose to code in C# with Godot?
@gaminglikewitherofficial9599
@gaminglikewitherofficial9599 3 жыл бұрын
I had an error
@andrewdavid308
@andrewdavid308 5 жыл бұрын
I use atom, I also tries vs code, I installed all the packages like c#, but can't get autocomplete tk work
@nenyashamajoboro3770
@nenyashamajoboro3770 4 жыл бұрын
@Mobi Linn maybe he disabled some settings in his editor aka atom
@nayankeshav6969
@nayankeshav6969 4 жыл бұрын
Custom node option not found.
@lydietuekam7872
@lydietuekam7872 2 жыл бұрын
Men, just open node tab then at the top there is the custom node "only if nothing is entered in the search entry!". Sorry if it doesn't match with your prob
@matejkovac6992
@matejkovac6992 4 жыл бұрын
failed to build project :/ help
@nenyashamajoboro3770
@nenyashamajoboro3770 4 жыл бұрын
MonoSDK
@matejkovac6992
@matejkovac6992 4 жыл бұрын
@@nenyashamajoboro3770 thanks mate
@nenyashamajoboro3770
@nenyashamajoboro3770 4 жыл бұрын
someone just liked the comment 13minutes later
@zarcz3144
@zarcz3144 4 жыл бұрын
GD.Print wont work ;(
@JuanArandaAlvarez
@JuanArandaAlvarez 4 жыл бұрын
Emacs!!! c'mon :D ... just kidding ViM is the true one editor!!!! ... ;)
@novoehuevoe9340
@novoehuevoe9340 4 жыл бұрын
Go away with your religion
@καλαμ
@καλαμ 4 жыл бұрын
@@novoehuevoe9340 no
@novoehuevoe9340
@novoehuevoe9340 4 жыл бұрын
@@καλαμ you too
@GO_Codes
@GO_Codes Жыл бұрын
I wonder why C# tutorials are only in English?
@pyrotechnick420
@pyrotechnick420 5 жыл бұрын
Hey so can I not follow along with this tutorial if I'm on a mac? I can't download the build tools EDIT: I installed the .NET Core dev tools which I learned is the replacement for the .NET Framework. Now, when I hover over my godot methods I finally get the documentation popup! I think I might be good to go.
@nenyashamajoboro3770
@nenyashamajoboro3770 4 жыл бұрын
wait what. Did you say .Net CORE. I tryed it and I was told you need the .Net SDK
@lirdedkj
@lirdedkj 5 жыл бұрын
O cara é br
@curiosidadesdalife381
@curiosidadesdalife381 4 жыл бұрын
idai porra, inglês é mais falado 8)
@cearaj405
@cearaj405 4 жыл бұрын
sim estonques
@djdols3301
@djdols3301 4 жыл бұрын
is using c# on godot worth it?
@rugami9060
@rugami9060 4 жыл бұрын
No. Compared to unity, this is way too complicated
@nenyashamajoboro3770
@nenyashamajoboro3770 4 жыл бұрын
@@rugami9060 You: Learns gdscript (and I hope you also learnt python) then give up on c#.Why, IDK.C# maybe like js but it's still not as hard
@rugami9060
@rugami9060 4 жыл бұрын
@@nenyashamajoboro3770 I dont use python. But I love C#, and GDScript or Python is not for me.
@curiosidadesdalife381
@curiosidadesdalife381 4 жыл бұрын
It says MoveAndCollide does not exist :O
@TheMrPalich
@TheMrPalich 4 жыл бұрын
Make sure the Player class is derived from the KinematicBody2D
@Vitro0505
@Vitro0505 2 жыл бұрын
maluco tu é br? tenho quase ctz
@gustavo3220
@gustavo3220 Жыл бұрын
É sim
@pedrooliveira8475
@pedrooliveira8475 3 жыл бұрын
você é brasileiro :)
@nenyashamajoboro3770
@nenyashamajoboro3770 4 жыл бұрын
I missed the semicolon
@dimp8088
@dimp8088 4 жыл бұрын
How do i do movement C# in 3D Godot
@rat4289
@rat4289 5 жыл бұрын
fuck. i give up
@manyachhabra6064
@manyachhabra6064 3 жыл бұрын
ur script doesn't work
@zanzaraloggan3713
@zanzaraloggan3713 5 жыл бұрын
godot and C#? BARBARIANS!
@toastedclosure2770
@toastedclosure2770 Жыл бұрын
wayyyyyy too fast and also needs timestamps
@melbylau7671
@melbylau7671 3 жыл бұрын
um br foi detectado
@walney2008
@walney2008 5 жыл бұрын
you speak sqlite and mysql godot use c# ?
@DavidZMediaisAwesome
@DavidZMediaisAwesome 5 жыл бұрын
Walney moreira klein I don’t understand what you’re asking
@zeroiq4737
@zeroiq4737 5 жыл бұрын
I think i stay in unity
@Tasy808
@Tasy808 5 жыл бұрын
for future videos slow down a bit, but else its pretty good.
@typingcat
@typingcat 4 жыл бұрын
Why do French people always pronounce the English word "support" like the French word "supporte"?
@Gdquest
@Gdquest 4 жыл бұрын
The host of this video isn't French. He's Brazilian.
@zetsu8142
@zetsu8142 4 жыл бұрын
br?
4 жыл бұрын
U
@storml.251
@storml.251 4 жыл бұрын
Brasil? ahhaha é noix
@lonezombieheart7808
@lonezombieheart7808 5 жыл бұрын
Pleeeeeaaase integrate Python like this...
@Gdquest
@Gdquest 5 жыл бұрын
github.com/touilleMan/godot-python
@MalArgon
@MalArgon 5 жыл бұрын
There's no sense in using godot mono really... Seems like a waste of time really
@JustKatoh
@JustKatoh 5 жыл бұрын
If they had 100% implementation of C# and godot worked 100% correctly on C# then it would have been the better option. Games would be 1000s of times more optmized, not to mention you could use external libraries like that instead of using C++ to code custom plugins.
@AlexGomes09
@AlexGomes09 5 жыл бұрын
@@JustKatoh Agree, I believe at some point C# would overtake gdscript as well. Just like Unity, they had/have Boo scripting but it's almost about to die or dead probably by now. With C# code is more manageable, readable, better OOP support.
@nenyashamajoboro3770
@nenyashamajoboro3770 4 жыл бұрын
@@AlexGomes09 also I always accidentally put a semicolon at the end of a line of code
@Destroyer19941995
@Destroyer19941995 3 жыл бұрын
Really?
@garvitsingh5908
@garvitsingh5908 5 жыл бұрын
please make a hindi video please
@Shadowthevampire
@Shadowthevampire Жыл бұрын
I got "failed to build project solution" can you help me?
@9crashunix
@9crashunix Ай бұрын
br?
Custom Nodes in Godot 3.1: Class Name Keyword (tutorial)
7:03
How to program in Godot - GDScript Tutorial
58:10
Brackeys
Рет қаралды 830 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
I Tried Making A Game In Godot With C#.
6:51
Code It All
Рет қаралды 9 М.
I built the BEST AIR ENGINE (New Rotary Design)
18:58
Integza
Рет қаралды 824 М.
Fantasy Haircut
5:15
DoodletmeGO
Рет қаралды 733 М.
Godot & C++ -- How, What and Why?
12:56
Gamefromscratch
Рет қаралды 117 М.
C# is BETTER than GDScript but...
5:13
hamsterbyte
Рет қаралды 30 М.
Начало работы с Godot Engine Mono (C#)
4:09
Oktopus Skills
Рет қаралды 19 М.
Using Godot + C# + Visual Studio Code
13:38
Gamefromscratch
Рет қаралды 99 М.
Malware development 101: Creating your first ever MALWARE
28:00
Leet Cipher
Рет қаралды 394 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН