Interact With Objects in Godot 4 | Let's Godot

preview_player
Показать описание
👇Dialog Tutorial👇

Let's make an interaction system in Godot that allows players to press a button to trigger an event. You can make your NPCs start dialogs, implement save points, toggle lights, and anything else you could want your player to be able to do in your game world with a press of a button. By following this tutorial you'll also learn about Callables in Godot 4, as well as how to use composition in place of inheritance to make your code modular and take your indie gamedev skills to the next level.

If you enjoyed the video leave a like :)

🎵 HOME - Head First
🎵 Less Gravity - Shhhh! Golf Is On - Lofi
🎵 Towerz - while it lasted
🎵 l'Outlander - Soul Searching
Рекомендации по теме
Комментарии
Автор

When adding the interaction area scene to your interactable node, you must add it exactly as they do at 8:23! Don't use "Add child node". Use "Instantiate Child Scene". You can do this a few ways:

- Click the chain link button in the top left of the node list
- Right click -> Instantiate child scene
- Drag the interaction area scene (tscn) file into the node list

If you add it as a child node, you can see that it won't have the little WiFi symbol in the node list (no signals attached). If you add it with "Instantiate Child Scene", it will have the little WiFi symbol, carrying over the signals you defined in the interaction area scene.

I was having trouble getting the signals to fire like some other here but finally figured out what I was doing wrong. Hopefully this helps someone else!

robertgoodberry
Автор

Please keep making this, all of your tutorials helped me a lot to polish my game - it's a matter of time you will blow up due to the quality of materials and Godot getting more popularity.
Thank you very much!

Archimond
Автор

I can notice the ammount of work you are putting into these videos!!! Looking forward to more of these!

artdirectorgiraffe
Автор

For those that having trouble with the label not showing above the NPC, try replace label.global_position.x = label.size.x / 2 to label.global_position.x = - 50, it worked for me, the label is centered above the NPC.

fanfugdyx
Автор

This is fantastic! Please keep making these sorts of videos

americoperez
Автор

These are honestly so well done, great job man. Keep em coming!

Over_Xelis
Автор

Really high quality code here. Thanks for sharing.

NicolasEmbleton
Автор

Great tutorial, thanks very much. I've been looking for one that worked for a few days and hadn't managed until finding this. Really high quality code too. Liked and subscribed.

Taylor-ibod
Автор

This is excellent. New subscriber as I'm building up courage to dive back into Godot after a long break.

haydenap
Автор

A legend, an unsung hero, cute animal saver
Thank you sir, keep up the great work

antonlytvynenko
Автор

Loved the video, explained all i needed to know, will watch the rest of your videos, thank you for making them

matias-dev
Автор

Excellent tutorial! I subbed and will be watching your other Godot content. Thanks for making it!

henryaudubon
Автор

Bro literally that's really hard but pretty amazing thanks for the help man!

thesomeonend
Автор

The amount of work you did to make that video is astounding. Excellent work. Also, great content!

TheRealMadJack
Автор

this so great. i love this approach. You are awesome! thank you SO MUCH! ♥

schleicherable
Автор

Great video! Quick and easy to understand. Thanks!

TheGamesRandons
Автор

I don’t know why the hell I’m watching this when I’m still doing the official tutorial thing but it’s just too damn interesting

Exeggutive
Автор

Thanks for the video, I'm creating dialogues using Dialogic addon and this method really helped.

tengentopka
Автор

Amazing video, clear, well edited and produced, and super helpful with good practices and explanations, thanks you! +sub

abranubes
Автор

I've never done programming before and this was so easy to follow thank you for this

TeaOS