|
|
|
|
Reply From: |
kidscancode |
Superficially, Python and GDScript appear similar. GDScript’s syntax is based on Python’s after all. However, I wouldn’t recommend Godot as a way to learn Python.
The main difference between the two is that while Python is a general purpose language which can be used for just about any type of project, GDScript is a “domain specific” language for use in a particular development environment (Godot). This means the language is very tightly integrated into Godot and a lot of what you use it for only applies to Godot. You can’t really use it without also understanding how the rest of Godot works.
As a teacher who has students using both Python and Godot, I would highly recommend starting with Python in the first place, especially if your goal is to learn Python. There are a huge number of Python resources out there - books, videos, courses, etc. - to get started with. It’s a much more manageable task to learn programming in Python than to learn programming PLUS game development in Godot.
I’m in kinda similar place as OP is, and as contrargument I can say one thing.
In enviroment like Godot it’s is more straight forward goal-wise.
You want to move your RigidBody.
You want to change colour of Sprite.
You want to make a pop-up button.
It just feels right to give yourself a challenge and do it. GDScript narrowness is IMO it’s advantage in this field, becouse broad use of Python can make it hard to set a specific goal.
And built-in Godot functions, still Python-like, can give good insight into Python programming and how things work.
Thanks for the reply. I should have been more specific when I asked. I sort of know the Python syntax, or at least I can read it, but I have not written a lot of it since I don’t have any projects in Python yet. So I don’t have it my hands yet. My fear is that I will start to write bad code that will not transfer to Python later on. Do you think that will be an issue?
doncic41 | 2018-12-19 17:24
First of all, if you’re a beginner you’re going to write bad code. That’s part of learning, just accept it and don’t feel bad about it.
You asked specifically about learning Python. If that’s your goal, then using Godot could very well sidetrack you from that as you go down the rabbit hole of learning animation or 3D modeling or any of a dozen other things that have little to do with writing Python code. If Python is your goal, then focus on it.
kidscancode | 2018-12-19 21:00
In enviroment like Godot it’s is more straight forward goal-wise.
This is not true at all given the OP’s actual question. Their goal is to learn Python. They didn’t even indicate desiring general programming learning. Nothing about Godot’s node, physics, or UI systms are going to help you with that specific goal.
kidscancode | 2018-12-19 21:03