Introduction to GDscript - Godot tutorial

preview_player
Показать описание
This tutorial gives a quick overview of GDscript and its basic syntax, including variables, conditions, loops, and functions. Other features will be covered in future videos.
----
Jump to the GDscript syntax overview: 5:49

----

Get in touch!

Рекомендации по теме
Комментарии
Автор

Time to look at the basics of GDscript! This video is for those of you who are coming from another engine and need a head start with Godot's scripting language. We look at a few basic things that we'll build upon in the coming weeks. If you have any questions about the language, just ask here and I'll try to cover everything in a future video.

Gdquest
Автор

The only programming language I've used making videogames was GML (game maker) and now I decided to use Godot.

My first experience wasn't so good but I did like the overall idea, design and it was available for my Linux. So I've decided to come back later someday and actually learn GDS and Godot itself.

Now it's the right time to start and I'm really glad I've found your videos!

MrFilming
Автор

the hard part about any programming language is understanding how you do a specific thing. for example you want a character to test if it is touching a enemy.
func something goes here():
if


the big part is the in between parts like how do i write something to test if it is colliding. or how do i write a function.

phoenixcgamer
Автор

it looks a lot like they mixed some or the best parts of Python and JavaScript

brandonmack
Автор

this tutorial is a little basic to me, but anyways compliments, it's nice to see people actually spreading knowledge on this fast-growing game engine. Godot definitely deserves more visibility

oddvarlookus
Автор

I am most of time really discouraged to see a command that my logical mind can perfectly understand what it does, but does not have a single clue on how to use it, when to write it, nor to read it's documentations.. I've read the latest progress report, where it is mentioned that gdscript code will be very simplified in Godot 3 but i still fear i will lack the intelligence to understand if i try to learn on in-engine and online docs/tutorials. The way i see it: i really need to be explained like i'm a 5 year-old. My problem is that i am pretty sure i could do visual scripting just fine, because i understand the logic behind a script. However, i have no idea how to implement it! I looked back at a few RGSS ruby scripts for RPG Maker XP recently, which i've used to mess with when i was a kid. Ruby was the first scripting language i've dived into, and the first line of code i've ever seen, and years later after diving Python, C, C#, Boo... (even outside the scope of gamedev) I will have no idea, no method, on how to implement anything on any computer. Am i a lost cause if i cannot manage to understand something considered as simple (yet to be even more simple) as gdscript?

And in the wake of Godot 3, will you redo and update tutorials...?
I don't know, but i think it's a question worth asking.
Thanks for reading.

Pengasius
Автор

I have notepad opened and am going to take notes, treat this as a class and I am the student! Lol.

chriswolfe
Автор

10:40 actually.. ;)


ls = dict(
key='value',
key2='value'
)

chiboreache
Автор

at 18:32 in javascript that's called a ternary operator it's>> condition ? ifTrue : ifFalse

icexiro
Автор

Coding your own games is easier than you think.

edoggr
Автор

Regarding 10:57. Python dicts & LUA dicts. You can achieve this sort of dict assignment in python with; my_dict = dict( key = value )

AdamSims
Автор

When working on a game can you go between coding and designing like go back forth I did get some designing done for my game

ShadowStiver
Автор

a fact about dictionaries: the key can be of any type, so having something like this is possible:
var meta = {}
meta[get_node("node1")] = "metadata1"
meta[get_node("node2")] = "metadata2"
meta[get_node("node3")] = "metadata3"

marianosuligoy
Автор

Good video- very clear. Keep em coming please :D

redruM
Автор

I know it's different time 2 months and two years ago tutorial of gdscript. But I think you can update your old thumbnail.

veermetri
Автор

GODOT: Hey can i copy your work
Python and JS: Sure but make some changes.

ricchburglar
Автор

Can i use 100% gdscript for make game in godot??

beritaasiatimurraya
Автор

To get beginners to code correctly (and take good habits) it is best to try to not confuse them between expressions and conditions. I'd rather rewrite your line :
return parameter_1 if parameter_1 else parameter_2
to this :
return parameter_1 if condition else parameter_2
Also the return keyword is used for the function to return something. It is not part of the ternary operator.
Finally, your video is primarily a comparison between Python and GDscript but what about other languages? Maybe your audience don't know about game engines but know about programming...
Anyway, other than that and as always your video is spot on and is really well structured. Good job.

flashjaysan
Автор

wow finally a game engine for python users XD thanks

AntonStunts
Автор

Is "pass" like return or does it just get out of that "if"?

18:37 like a ternary operator?
So it's equivalent to the c#:
return (parameter1=parameter1? parameter1:parameter2);
Not sure if I understand correctly.

ZoidbergForPresident
join shbcf.ru