Game Development for Kids with Godot Engine - Draw 2D Line using GDScript
In this post, we will take a look at How to Draw 2D Line using GDScript in Godot Engine.
So far in the GDScript series, I have covered how to get the screen size, how to draw the cricle. And now In this video tutorial series, I want to cover how to draw the 2D line. I hope that you are enjoying the GDScript series so far. I have worked pretty much hard on these set of tutorials and hoping that in near future I get to add more content as well.
By now I am sure you have learned how to make use of the Godot Engine. And with the GDscript. I am pretty sure you know how to get the most out of designing through script as well. In near future I may also cover the C# Version of the godot engine and it's respective tutorials.
This is 15th tutorial that I am going to cover in this series and it'd be interesting to see how the further series would cover some of the basics of the Godot engine. So if you have yet to check out the previous set of the tutorials then you can check the below Table of Content to through past posts.
Table of Contents of Godot Engine Tutorials
- Godot Engine - Create New Project
- Godot Engine - Change Scene Background
- Godot Engine - Add Image Background
- Godot Engine - Change Icon of Boot Splash Screen
- Godot Engine - Create GDScript
- Godot Engine - Create Function
- Godot Engine - Create Dictionary
- Godot Engine -if-else statement
- Godot Engine -Parameterized Function
- Godot Engine - Loops
- Godot Engine - Get Screen Size
- Godot Engine - Draw 2D Circle
This tutorial covers how to draw the 2D Line. I am sure you can experiment with colors and also the size of the line. And you can extend this tutorial further if you want by reading through the documentation. I hope that this tutorial helps you for the further design.
I may even repeat this set of the design tutorials with emphasis on the C# code. I hope that you will stick around for those set of the tutorials in near future.
If you want to try out the similar game development tutorials using the gdevelop, you can follow this tutorial trail of GDevelop Tutorials.
I hope the current tutorial was useful to you.
We will continue the further game development topic in next post.
Great, I used to do some things with Unity, but i like Godot a lot for its simplicity. Some time ago I also saw GDevelop this is a bit more basic but for simple ideas it is very good. Regards.