create account

Game Development for Kids with Godot Engine - Draw 2D Line using GDScript by devpress

View this thread on: hive.blogpeakd.comecency.com
· @devpress ·
$20.52
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. 

---

![](https://images.hive.blog/DQmZq5G8gzFQ2ybjMAzBaTRgRFabgbsvSKRbdfKxZCS1wgT/gdart.png)

---

### Table of Contents of Godot Engine Tutorials

---

- [Godot Engine - Create New Project](https://hive.blog/hive-122108/@devpress/game-development-for-kids-with-godot-engine-create-new-project)
- [Godot Engine - Change Scene Background](https://hive.blog/hive-122108/@devpress/game-development-for-kids-with)
- [Godot Engine - Add Image Background](https://hive.blog/hive-122108/@devpress/game-development-for-kids-with-godot-engine-add-image-background)
- [Godot Engine - Change Icon of Boot Splash Screen](https://hive.blog/hive-122108/@devpress/game-development-for-kids-with-godot-engine-change-icon-of-boot-splash)
-  [Godot Engine - Create GDScript](https://hive.blog/hive-122108/@devpress/game-development-for-kids-with-godot-engine-create-gdscript)
-  [Godot Engine - Create Function](https://hive.blog/hive-122108/@devpress/game-development-for-kids-with-godot-engine-create-function-in-gdscript)
- [Godot Engine - Create Dictionary](https://hive.blog/hive-122108/@devpress/game-development-for-kids-with-godot-engine-create-dictionary-in-gdscript)
- [Godot Engine -if-else statement](https://hive.blog/hive-122108/@devpress/game-development-for-kids-with-godot-engine-if-else-statement-in-gdscript)
- [Godot Engine -Parameterized Function](https://hive.blog/hive-122108/@devpress/game-development-for-kids-with-godot-engine-parameterized-function-in-gdscript)
- [Godot Engine - Loops](https://hive.blog/hive-122108/@devpress/game-development-for-kids-with-godot-engine-loops-in-gdscript)
- [Godot Engine - Get Screen Size](https://hive.blog/hive-122108/@devpress/game-development-for-kids-with-godot-engine-get-screen-size-using-gdscript)
- [Godot Engine - Draw 2D Circle](https://hive.blog/hive-122108/@devpress/game-development-for-kids-with-godot-engine-draw-circle-using-gdscript)
---

https://www.youtube.com/watch?v=wHm2d0C9AIg

---
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](https://hive.blog/hive-122108/@devpress/game-development-for-kids-with-godot-engine-using-templates-and-demos).

I hope the current tutorial was useful to you.

We will continue the further game development topic in next post.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 35 others
properties (23)
authordevpress
permlinkgame-development-for-kids-with-godot-engine-draw-2d-line-using-gdscript
categoryhive-122108
json_metadata{"tags":["archon","palnet","cent","stem","broadhive","lern","programming"],"image":["https://images.hive.blog/DQmZq5G8gzFQ2ybjMAzBaTRgRFabgbsvSKRbdfKxZCS1wgT/gdart.png","https://img.youtube.com/vi/wHm2d0C9AIg/0.jpg"],"links":["https://hive.blog/hive-122108/@devpress/game-development-for-kids-with-godot-engine-create-new-project"],"app":"hiveblog/0.1","format":"markdown"}
created2021-12-17 07:45:27
last_update2021-12-17 07:45:27
depth0
children1
last_payout2021-12-24 07:45:27
cashout_time1969-12-31 23:59:59
total_payout_value10.292 HBD
curator_payout_value10.226 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,788
author_reputation55,061,325,071,240
root_title"Game Development for Kids with Godot Engine - Draw 2D Line using GDScript"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id108,626,093
net_rshares10,522,133,186,556
author_curate_reward""
vote details (99)
@manuelernestogr ·
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.
properties (22)
authormanuelernestogr
permlinkre-devpress-20211217t84614377z
categoryhive-122108
json_metadata{"tags":["archon","palnet","cent","stem","broadhive","lern","programming"],"app":"ecency/3.0.20-vision","format":"markdown+html"}
created2021-12-17 13:45:48
last_update2021-12-17 13:45:48
depth1
children0
last_payout2021-12-24 13:45:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length192
author_reputation12,021,068,467,128
root_title"Game Development for Kids with Godot Engine - Draw 2D Line using GDScript"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id108,632,069
net_rshares0