Let Learn Godot! Creating Custom Nodes!

preview_player
Показать описание
Subscribe and learn more from me about Game Development and Programming!

in this video, we discuss how to create your own nodes in Godot! This is very useful if you want to create code that is reuseable and accessable from the add node menu.

BE MY FRIEND:

TIMESTAMPS
00:00 Intro
00:54 Getting into Godot and Creating the Plugin
02:29 Explaning the Plugin Script file
03:24 Registering and Deregistering our Custom Node
07:08 Explaning How Tool Code Works
09:37 How to Make Your Code Not Run At Game Time
11:01 Instancing a Scene Using Custom Nodes
19:12 Outro

MUSIC
Music provided by TheRelaxedMovement.

HASHTAGS:
#Plugin #Godot3.4 #CustomNodes

ABOUT MY CHANNEL:
I've been a software developer for over 7 years. I've worked in the game industry for 3 of those years. This channel is used for news on the gaming\programming industry and for tutorials for game\programming development.

Let Learn Godot! Creating Custom Nodes!
Рекомендации по теме
Комментарии
Автор

The basic spawner node is honestly cool enough that it should be in the base engine. Like when adding a new node it should have your saved scenes as options to add. Great tutorial!

MasterArrow
Автор

I wanted to share that you don't have to create a plug-in to create a custom node. If you'll be using the node just for the specific game you are creating, it's sufficient to create a script and put "tool" and "class_name MySomething" at the top. You will then see MySomething show up when adding child nodes. ... You can still move it to a plug-in later if you decide to share it between games.

Unavailable
Автор

Please continue making these tutorials on godot. They are really good and well explained. Especially your advanced topics. It's hard to find easy to understand info on some of this stuff!

frankschmidtjr.
Автор

Once again thanks for this video. In the process of switching from Unity to Godot, I created 2 custom nodes one for GameObject and one for MonoBehaviour which will help me porting the code from one development platform to the other.
I found your channel a valuable resource of information which helped me a lot. Keep it up!

demented
Автор

When I went looking for help to create a plugin I was really hoping you would have a tutorial. Glad to find that you do.

whoeverofhowevermany
Автор

full explanatory from scratched to advanced! I found out all I need. thanks for the efforts. 🙂

mvolkankarakas
Автор

As always amazing
Your tutorial ate juts prefect fro intermediate Godot game devs
Thanks man I learned alot from your videos

darkdevilxy
Автор

thx =)
godot is so overunderrated imo

question_mark
Автор

Perfect pace and well explained. Really nice.

I am not quite sure though if you really need to dis- and enable the plugin for small changes in the tool script (the Node2D, not the EditorPlugin).

…However, it still seems to me to be a way underrated YT channel when it comes to Godot. Wish you much more watchers and subscribers. Keep up! 👍

dueddel
Автор

Thank you for the great tutorial! please do explain how to make instantiated scene unique so that if i change something inside that scene the other instantiated scene won't get modified. It is from this tutorial.

beebiki
Автор

It seemed a bit confusing to me, I think that activating and deactivating to refresh the behavior of the plugin should be improved.

desoftb
Автор

Hi thank you for that turtorial, i struggeled with the set_owner... because now its one year later and im using godot 4.2 and i wanted to add 3DNode to the scene the set_owner was not working.
According to the documentation its now alittle diffrent node.owner = get_tree().edited_scene_root instead of set_owner...

# `parent` could be any node in the scene.
var parent =
var node = Node3D.new()
parent.add_child(node)

# The line below is required to make the node visible in the Scene tree dock
# and persist changes made by the tool script to the saved scene file.
node.owner = get_scene()

lalalala
Автор

I was trying to do a plug-in in Godot 4 using this system. I tried to follow some documentation to adapt the code but, even after changing the Instance to instantiate (as some devs say it is the new instance method), the compiler is showing this error: "Trying to call a function on a null value.".
Does anyone have an idea of how to convert it?

firezacerick
Автор

Hey, can you please explain how to make a cutscene in Godot

HariKrishna-zcdk