No video

How to Use Signals in Godot and Handle User Input (Godot Retro Text Adventure #3)

  Рет қаралды 18,202

jmbiv

jmbiv

Күн бұрын

Пікірлер: 90
@travotravo6190
@travotravo6190 11 ай бұрын
I've been following along these tutorials and they're great! Unfortunately multiple things have changed in Godot in late 2023. What I had to do to make the instancing script work: onready - change to "@onready" (no quotes) instance - change to "instantiate" (no quotes) Hope that helps somebody else.
@jmbiv_dev
@jmbiv_dev 9 ай бұрын
Thanks for providing syntax updates for Godot 4.x! I know others will find this really helpful.
@blackmine57
@blackmine57 7 ай бұрын
It definitely was helpful :)
@AlexR_OR
@AlexR_OR 5 ай бұрын
Instance change was not that easy to find. You saved my time! thank you
@wuwustg
@wuwustg 3 ай бұрын
thank u save a person begining to learn
@Dbar412
@Dbar412 2 ай бұрын
ive been following these videos and spent so much time looking for the syntax updates on google and this helped me a bunch, thank you
@mgc8888
@mgc8888 Жыл бұрын
Awesome tutorial series -- perfect style, explanations and pacing, thank you very much! Just wanted to add a quick note -- in Godot 4, "onready" is now an annotation, and needs to be specified as "@onready", otherwise you'll get an error; also, ".instance()" has become ".instantiate()". Cheers!
@sneedmasterflsh
@sneedmasterflsh Жыл бұрын
thank you for sparing me from untold agony and suffering 👍
@bensdecoypoondummy1189
@bensdecoypoondummy1189 Жыл бұрын
What a legend
@charlythompson9281
@charlythompson9281 11 ай бұрын
Thanks so mucj for posting this! I was going a little crazy. Reading the comments on a yt video isn't always the worst, lol.
@UnexcitingChris
@UnexcitingChris 11 ай бұрын
Thank you a million!
@RU-rx3ef
@RU-rx3ef 9 ай бұрын
Thank you, man. I was sweating my ass out when I found out my program crashed every time I wrote a text. You are my saviour, good sir😊
@jerodak6462
@jerodak6462 3 жыл бұрын
You probably knew this already, but for those who might not. When making a script, if you don't want all the filler stuff, you can go to template and select empty. This will only leave the "extends (Whatever node the script is on)" at the first line. Godot remembers this setting for every other script you make, so you only have to do it once.
@jmbiv_dev
@jmbiv_dev 3 жыл бұрын
That's a great point, thanks for mentioning it!
@benbutcher2608
@benbutcher2608 3 ай бұрын
Just incase anyone is using Godot 4 and newer text_entered is now called Text_submitted
@gusyoung82
@gusyoung82 2 жыл бұрын
This is easily one of the better Godot tutorials I have seen. Thorough yet accessible. Thanks.
@jmbiv_dev
@jmbiv_dev 2 жыл бұрын
So glad to hear that you think so! Thanks for the kind words and glad it was helpful.
@SamuTheFrog
@SamuTheFrog 2 ай бұрын
what an amazing series man. Great work Also, i've been trying to understand exactly how signals/connections work in Godot, but no one quite explained it nor any documentation in such a way I actually understood for some reason. So, thanks for that.
@akitaropiquet7580
@akitaropiquet7580 Жыл бұрын
For anyone with a more recent version of Godot: 16:50 you can now right-click on a node to "Access as Unique Name." So here you right-click on the node HistoryRows, select "Access as Unique Name," then in your code you write: @onready var history_rows = $%HistoryRows instead of the whole path. So you don't have to change it if you create new nodes in-between. @jmbiv I just finished watching your whole playlist. Awesome tutorials! Thank you so much!
@jmbiv_dev
@jmbiv_dev 9 ай бұрын
Sorry for the delayed reply, but thanks so much for posting this! Yes, for others who see this - using the "Unique Name" feature is a game changer that I wish was available when I made this tutorial. The syntax you wrote above is correct but you can actually simplify it a bit more! You don't need both the $ and the % operators, you only need %. So the line would look like this: @onready var history_rows = %HistoryRows Unique names are especially valuable for UI-heavy games, since you often have @onready UI variables that have really long node paths. Unique names get rid of all that and let you use just the name of the node itself. Anyway, thanks again for the very helpful comment, and for the kind words! Glad this series could be helpful for you.
@whoeverofhowevermany
@whoeverofhowevermany 3 жыл бұрын
You're so good at the core structuring that you've got me watching tutorials about how to make a text game
@jmbiv_dev
@jmbiv_dev 3 жыл бұрын
Ha 😂 appreciate the kind words
@joelchrono
@joelchrono 3 жыл бұрын
I can see the private vids on the playlist and I want to access them so badly, you are doing a great job and I cant wait for this to release, since I have a final project where I gotta do a text adventure game!
@jmbiv_dev
@jmbiv_dev 3 жыл бұрын
Haha sorry for the slow release schedule! Trying to feed the KZbin algorithm 🙃
@partyeffectsdotbiz
@partyeffectsdotbiz 2 жыл бұрын
This is one of the best godot tutorials on youtube
@jmbiv_dev
@jmbiv_dev 2 жыл бұрын
Thanks, so glad it can be helpful for you!
@croll_uk
@croll_uk 3 жыл бұрын
Another awesome video. I had to watch the section explaining 'onready ... $' a couple of time, I think I got it :D Looking forward to the next installment ;)
@jmbiv_dev
@jmbiv_dev 3 жыл бұрын
Glad to hear, thanks for watching! Yea, hopefully it made sense, but feel free to ask for further clarification if need!
@riidom
@riidom 3 жыл бұрын
Yes this was much better explained than in the ones I watched so far!
@enbermudas4269
@enbermudas4269 3 жыл бұрын
Yes! I was waiting for this tutorial. Thanks a lot dude.
@jmbiv_dev
@jmbiv_dev 3 жыл бұрын
No problem, enjoy! 🙂
@enbermudas4269
@enbermudas4269 3 жыл бұрын
​@@jmbiv_dev Just finished this episode and it was great. I've added the MarginContainer for the InputResponse by myself and that looks great. I'll try to set the values inside that scene before you release the next video. Let's see how it goes!
@jmbiv_dev
@jmbiv_dev 3 жыл бұрын
That's awesome! I feel like that's a great way to learn too - try something on your own and then see how it compares later! You might even end up doing it a better way 🙂
@dreamhollow
@dreamhollow 2 жыл бұрын
I'm glad you've done these videos. I love this series.
@xplodegg
@xplodegg 11 ай бұрын
Dude you are an amazIng teacher. Enjoying watching along :)
@robertlegear
@robertlegear 3 жыл бұрын
Excellent tutorials so far, I will need to go through this again but it's an excellent way to learn the basics of Godot. Please keep going with these tutorials, your explanations are top class, thanks.
@jmbiv_dev
@jmbiv_dev 3 жыл бұрын
So glad that you've found the videos helpful, and thanks for the kind words!
@pascalcasier959
@pascalcasier959 3 жыл бұрын
Great video. thank you. Already waiting for the next one !!!
@jmbiv_dev
@jmbiv_dev 3 жыл бұрын
So glad it was helpful! It'll be out next Monday 🙂 I'm hoping to speed up the rate of release but most likely will continue to be one per week for the foreseeable future.
@thomaseubank1503
@thomaseubank1503 2 жыл бұрын
I never understood onready until now, thanks
@jmbiv_dev
@jmbiv_dev 2 жыл бұрын
Awesome, glad you got it! It's a super helpful keyword.
@jessica_beck
@jessica_beck 9 ай бұрын
i will say, something frustrating about this is the fact that some things don't get explained in really any detail and some things get over explained. I'm glad i found a tutorial on this but the way it's structured leaves me with a program that works, yet i don't know why. (otherwise, i do appreciate the tutorial)
@jmbiv_dev
@jmbiv_dev 9 ай бұрын
Thanks for the feedback! Always valuable to hear ways the tutorials can be improved. Can you give a bit more context around which parts you felt were under explained? I would love to try and help briefly fill in some of those gaps here (and, also, asking around on either our Discord server or the official Godot server are great places for that, too!).
@SamuTheFrog
@SamuTheFrog 2 ай бұрын
Must be a shortcoming on your part, either not paying attention or just not understanding. He explained pretty much every tiny little thing along the way, at that, better than anyone else on youtube I've seen thus far. Seems to me like you need to rewatch it a few times until it clicks or something. Dude explained more than enough, though. Try harder or something, idk. Always strikes a nerve when people attack the creators for their own shortcomings and frustrations. I don't think you realize how much time and effort went into creating this, for free, so you can learn, for free, fairly complicated shit that you probably wouldn't even dream of figuring out on your own, based on your comment. Dude threw together a 18 video playlist, videos averaging around 15m., If that's not enough information... you really need to get a better learning process.
@aboodispam
@aboodispam 3 жыл бұрын
this series is amazing thanks it helps sooo much
@jmbiv_dev
@jmbiv_dev 3 жыл бұрын
Glad you're finding them helpful!
@valeska-letta
@valeska-letta 2 жыл бұрын
hi :) I discovered your tutorial series recently and they are amazing
@jmbiv_dev
@jmbiv_dev 2 жыл бұрын
Of course, so glad to hear that they are helpful! Thanks for the kind words!
@nosdregamon
@nosdregamon 3 жыл бұрын
Awesome series. This is not entirely godot-specific, but will we see how you'd structure room-data? As in "rooms", "what's in them" and "how to get from a to b"?
@jmbiv_dev
@jmbiv_dev 3 жыл бұрын
Yes, definitely! It will probably be part 6 when we start doing rooms but I'm going to give an example of how to do a room system + connections between rooms entirely within Godot.
@Duraznito9712
@Duraznito9712 Жыл бұрын
In my case, I would like to create an adventure game with a slightly more graphical style, one that includes images and allows the player to scroll through longer texts. Additionally, the player wouldn't have to type anything but rather choose and select from 2 or more pre-established visible options. It could also include background music and sound effects. Do you think you could make a tutorial on something like this? That would be fantastic.
@TheKlopka
@TheKlopka 8 ай бұрын
Only 3 tutorials in and you already bring in SOLID? haha not hating on you, just have some PTSD from some harsh code reviews.
@adamrjhughes
@adamrjhughes 28 күн бұрын
are these broken now? can;t get them to work with same code
@DrNabeel20
@DrNabeel20 Жыл бұрын
Great ❤️ thanks
@GrimMask
@GrimMask Жыл бұрын
Hi, the tutorials you're providing is very useful. Although I encounter an error when i play the game, everything went smooth but after I play the game and enter a text, instead of the game responding to my text, the game will just freeze. I hope you can help me here, thanks
@philipu12
@philipu12 3 жыл бұрын
Hello, I wanted to ask why you opted to use a Label for the input history and response rather than a RichTextLabel? From what I've searched on the internet I think a RichTextLabel would be much more useful for a Text Adenture, but I really don't know since I'm a beginner. Thanks for the content btw :)
@jmbiv_dev
@jmbiv_dev 3 жыл бұрын
Great question! RichTextLabels definitely give you more control over how text is presented - they allow for different colors, different alignments, text styles, etc., all within the same node. The reason I've used labels for everything so far is: 1. We haven't needed to use different colors or anything, and Labels are much simpler to use than RichTextLabels, so there hasn't really been a reason to use a RichTextLabel. In general, you probably always want to stick with regular Labels unless you really need to use BBCode on RichTextLabels. 2. RichTextLabels don't always play super nicely with Godot's UI/Container system - it can be a lot harder to align them and get them to look right as compared to a regular label. That said, as I'm sure you've seen online, RichTextLabels are incredibly useful and powerful. As we keep expanding our game I've always planned to start making use of RichTextLabels eventually, but we just haven't really need to yet. I hope that's a helpful explanation!
@philipu12
@philipu12 3 жыл бұрын
​@@jmbiv_dev​Thanks for the response! It helped a lot :)
@hpmadl
@hpmadl Жыл бұрын
Im following well, till When i input onready everything go red.
@GrimMask
@GrimMask Жыл бұрын
The script it updated now, onready should be @onready. Put @ before it
@lunyxappocalypse7071
@lunyxappocalypse7071 2 жыл бұрын
But the line edit has multiple signals inserting into both itself And the Game control node. Its not a one to one purpose its a multi signal for a single purpose.
@jmbiv_dev
@jmbiv_dev 2 жыл бұрын
Can you clarify your comment a bit more? I'm not sure I fully understand.
@Whyisthishere05
@Whyisthishere05 2 жыл бұрын
Whenever I press enter the input responses dosent show up I’ve typed the code word for word and I don’t know what’s wrong with it
@jmbiv_dev
@jmbiv_dev 2 жыл бұрын
Can you join our Discord server? You can post a picture and we can help you out more there!
@cheshire3335
@cheshire3335 8 ай бұрын
Note the "onready" keyword has been replaced by the "@onready" annotation in godot 4
@gary2638
@gary2638 3 жыл бұрын
Hey, I was making the clear function and I got an error and it didn't work when I tried to run it. I looked closer at your video, and you appear to have the same error, but yours runs fine. (Mine doesn't clear at all after enter) Any help would be appreciated! Thanks for the vids so far!!
@gary2638
@gary2638 3 жыл бұрын
oop, nvm. I fixed it ... somehow
@jmbiv_dev
@jmbiv_dev 3 жыл бұрын
Cool, glad you were able to get it fixed!
@izaya6585
@izaya6585 3 жыл бұрын
it said: Invalid Call. Nonexistent function 'instance' in base 'Gdscript'
@jmbiv_dev
@jmbiv_dev 3 жыл бұрын
Are you still having this issue? If you join our Discord server we can help you debug more there.
@Meehuuu
@Meehuuu 11 ай бұрын
For those who don't want to join yet another discord - in Godot 4 it is now "instantiate"
@PlushPilla
@PlushPilla Ай бұрын
RichTextLabel makes things easier, so learn how to use that instead of creating a bunch of labels
@rik0904
@rik0904 Жыл бұрын
do you remove my comments from video ? WTF?
@rik0904
@rik0904 Жыл бұрын
omg i figuret out yt remove my coment because i use name of 'dotNet' with the dot -_-'
@jmbiv_dev
@jmbiv_dev Жыл бұрын
Ah glad you figured it out! Yea I never remove comments unless they’re spam.
@rik0904
@rik0904 Жыл бұрын
@@jmbiv_dev im trying to write how to write it in c sharp but yt don't make it easy, I guess I will not be able to help any one who what to do it that way. YT is bad.
@ApatheticAnarchy
@ApatheticAnarchy Жыл бұрын
i'm getting an error saying emit_signalp: Error calling from signal 'text_submitted' to callable: 'Control(Game.gd)::_on_input_text_submitted': Method not found. i'm using godot 4.0, does anyone know a fix?
@grarldbrown6812
@grarldbrown6812 8 ай бұрын
If u renamed the node, reconnect the signal again.
How to Make a 3D Hexagon Grid in Godot (Tutorial)
21:58
jmbiv
Рет қаралды 20 М.
1ОШБ Да Вінчі навчання
00:14
AIRSOFT BALAN
Рет қаралды 4,6 МЛН
At the end of the video, deadpool did this #harleyquinn #deadpool3 #wolverin #shorts
00:15
Anastasyia Prichinina. Actress. Cosplayer.
Рет қаралды 15 МЛН
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 68 МЛН
A new way to generate worlds (stitched WFC)
10:51
Watt Designs
Рет қаралды 527 М.
How Games Make VFX (Demonstrated in Godot 4)
5:46
PlayWithFurcifer
Рет қаралды 340 М.
Random Level Generation with a Walker - Godot Tutorial
26:56
Heartbeast
Рет қаралды 96 М.
Godot 4 - Tiled Dungeon Environment From Scratch
26:24
DevLogLogan
Рет қаралды 415 М.
RPG or Visual Novel dialog box for Godot 3!
16:33
Emi
Рет қаралды 60 М.
I Tried Godot VisualScript In 2024 ( And Found An Alternative )
8:19
How do non-euclidean games work? | Bitwise
14:19
DigiDigger
Рет қаралды 2,4 МЛН
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 802 М.
1ОШБ Да Вінчі навчання
00:14
AIRSOFT BALAN
Рет қаралды 4,6 МЛН