And here are a few extra tips given by the community, to go beyond the video! Thanks to everyone for chipping in :) 1. When you use the built-in hooks like _Ready(), _Process(), etc., don't forget to add the underscore at the beginning so that you properly override the function, and Godot can run your logic! :)
@yess.65589 ай бұрын
Your videos are amazing! Thank you so much for sharing❤
@luckyknot Жыл бұрын
Perfect timing Mina, I was looking how to enable autocompletion of C# for Godot and bam! :) I'm struggling with the so many input systems but I finally found _UnhandledKeyInput() for my basic 2D keyboard needs. Also the official docs do not explain that some input methods in C# need to start with an underscore, like 'public override void _UnhandledInput(InputEvent @event)'. It's a bit confusing. Looking to make a very tiny topdown rpg, so any tutorials like making NPCs move random, dialogues, get items, tiny inventory, persist objects or NPCs across scenes, making a nice event system is more than welcome... i'm enjoying all your tuts anyways! :)
@minapecheux Жыл бұрын
Haha, happy I could help! Yep I also found the different input hooks a bit confusing at first - but it's basically a way of having more control over your game loop so I think, ultimately, it's good ^^ Might do a tut on this, too, one day, actually ;) Ah you're right, I did forget to mention about then mandatory underscore... I'll add a pinned comment with those extra remarks, thanks! And I've noted the different ideas, thanks again for the support and the suggestions :) Cheers!
@djdavidj Жыл бұрын
Great video, I use C# but will learn GD script soon. I am a bit lost with the basic game loop in Godot 4.1. I understand how to do this in Unity, but switching to Godot I am learning right now. Any future videos if you're asking would be on Basic game loop. The splash, start menu, game play, win/loose/gameover. I am more of a advance user, but just getting use to switching from GameObjects to Nodes. :) Thanks for your videos!
@minapecheux Жыл бұрын
Thanks for the kind words - and definitely writing down your idea cause I think a basic gameplay pattern video like this could be great! Thank you for the idea :)
@TheBunzinator3 ай бұрын
Thanks! There was a thing or two in the casting tips that I wasn't aware of, and found very useful. Also, I don't really like describing C# as a complied language, since it compiles to bytecode, not machine code. But I guess that's my bigoted view as a C/C++ coder. (And a hater of Java. :))
@minapecheux2 ай бұрын
Glad it helped! Haha yep I know it's not technically correct - but it's easier to say that, and to distinguish it from GDScript that way ^^ the downfalls of popularising a topic I guess ;) (And I agree - Java's way too weird for its own good :D)
@hamsterbyte Жыл бұрын
It's important to know how marshalling costs are going to affect the performance of your C# code in Godot as well.
@minapecheux Жыл бұрын
Yup, that's indeed really important, thanks for pointing it out :) I didn't want to go into those (slightly) more advanced topics in this beginner video, but I do plan on doing a dedicated tutorial on "is C# really faster than GDScript?" where I talk about this kind of important caveats!
@R.Daneel Жыл бұрын
Can you mix and match? For example, add a few C# scripts to a GD project or vice-versa? Another example, converting from one to the other; is it all-or-nothing, or bit-by-bit?
@minapecheux Жыл бұрын
From what I've tested, you can actually mix-and-match! Basically, you use GDScript for some objects and C# for others. And thanks to signals, you can have them talk to each other :) Haven't tried to thoroughly yet, so it definitely needs more tests, but I'd like to make a video about that when I find the time ^^
@reliewrewrite8226 Жыл бұрын
I have a question about signals. I am just starting with godot and before this video i just connect signals with syntax like this. var area = this.GetNode("Area2D"); area.Connect(Area2D.SignalName.AreaEntered, new Callable(this,MethodName.OnCollision)); Is there id difference with standard event assign += ?
@minapecheux Жыл бұрын
Hello! From what I've tested, it looks like in Godot 4+, when using C#, you need to use the event assign (+=) syntax; but the idea is still the same, only the syntax has changed :)