We set up a dialogue system for our game that will feature: portraits, names, “voices”, multiple pages, camera maneuverability, and “typewriter” text.
Note: although this system is made as a part of the Farming RPG series, you can jump into this video without having done any of the previous ones if you’re just interested in implementing a dialogue system.
Assets download (sprites):
Here I am in other places:
Twitter:
Patreon:
*CREDITS
Link to Farming RPG series playlist:
Nguồn: https://pubvision-network.com/
Xem thêm bài viết khác: https://pubvision-network.com/game/
I came looking for a copper, but i found gold
I have been following your tutorials very nice work. However I downloaded your complete FC dialog system and it requires multiple parents for the same object how did you handle this. For example in the documentation it says: "If you want to make an object part of the dialogue system as a speaker object, you'll need to make it a child of par_speaker"
But the player object is already a parent of par_depthobject and my NPC which I want to have dialog with have a parent already as well the par_NPC
I've been messing around with it. I got everything to work (I did all the tutorials except for the last one to run scripts).
I was trying to center the text as it was written and when I did it I noticed that it was just showing every other line of text. I can "fix it" just doubling the strings but that's more work.
Any idea what could it be? I tried to check everything but nothing seems out of place
Hi !!I'm having an issue with the buffer and I can't figure out why since I'm sure I've typed everything correctly, can somebody help?
FATAL ERROR in
action number 1
of Create Event
for object o_textbox:
Variable o_textbox.box_x(100035, -2147483648) not set before reading it.
at gml_Object_o_textbox_Create_0 (line 22) – text_x = box_x + x_buffer ;
the issue is in these lines;
x_buffer = 10;
y_buffer = 6;
text_x = box_x + x_buffer ;
text_y = box_y + y_buffer ;
Thank you👩💻
is it possible to successfully follow dialogue+NPC dialogue+ dialogue branching choices tutorials without watching other tutorials from the series? I am making a PnC game and it's mostly about dialogues with different characters.
Please somebody answer before I loose all hair on my head. Thanks! 🙂
как не хватает перевода на русский…
I wanted so much that I had some tutorial in Portuguese. I don't understand english right. 🙁
um hi. ı have a queston
I wrote text [0] and text [1] towards the end of the video. (and for the first time I understood how a code works. You say it very well. Thank you.)
When I press interactive_button ("Z" for me) after page ++ code after the first text, it immediately switches to the second text and suddenly turns off at the speed of light. but it certainly looks like the 2nd text. it just shuts down quickly. If I write the wait code at the end of the page ++ code, will the problem correct? Thanks again
(my english may be bad sorry :D)
if(friendlyCosmonaut doing comment){
be (happy)
}
Thanks!
08:00
Hello, friends. Maybe someone can tell me GM Studio allows you to create a non-linear dialog system? I mean when the NPC in the dialogs reacts to the player’s actions in the game world or when through the dialogue you can get different results.
It took me a while to realize that my screen resolution is smaller than what FriendlyCosmonaut uses, so her numbers don't look right in my test game. Most of your GUI layer should be resizing its sprites based on the screen size, so it looks good on different resolutions. That's outside the scope of this tutorial, but something like a 9-slice texture would work for most in-game windows/textboxes. Thankfully there are scripts already made for this kind of solution, available on youtube and online forums.
So just one problem with the early part of the tutorial. GMS keeps spitting out an error about the global.gamewidth, whenever I write that line of code for port_x. Any ideas why this is happening?
############################################################################################
FATAL ERROR in
action number 1
of Create Event
for object oTextbox:
global variable name 'game_width' index (100054) not set before reading it.
at gml_Object_oTextbox_Create_0 (line 13) – port_x = (global.game_width – box_width – port_width) * 0.5;
############################################################################################
Hopefully someone can help me. I switched out the guiHeight and guiWidth with global.game_height and global. game_width, but now I am getting this error. I referenced the video and my code appears the same. Any ideas?
FATAL ERROR in
action number 1
of Draw Event
for object game:
Variable game.doTransition(100034, -2147483648) not set before reading it.
at gml_Object_game_Draw_64 (line 2) – if(doTransition){
I've got a problem, my dialog box looks so damm wierd and and the words are so wierd placed, can you help me with the problem?
In my obj_textbox Create event, on line 13-14, I keep getting errors that say “unassigned variable Game_height/width referenced.” How do I make this go away?
Wouldn't it be better to deactivate the text-box rather than destroying it?
This series is awesome but can you please call it "G.U.I" coz I don't like hearing ***…
I love your videos. Every time I find a particularly frustrating problem you tend to have an elegant solution for it.
Hey, sorry to bother you (again). I have an issue with drawing text in my game. I want to make a text bubble above an NPC with text in it, so I can't use the draw GUI event and have to use the draw event (I think). The dimensions of the camera in my game are only 320×180 (very small, since its pixel art), but as a consequence of this, the text I draw has to be about 5px so every font is super pixelated… I don't really want to use a pixel art font so I'm asking you: is there a way to still draw the text in high quality? I downloaded your dialogue system from itch.io and noticed you used a 32px font, even though your camera dimensions are quite small like mine. How did you do that? Is that possible in a draw event?
Can someone help me? I obviously did something wrong, but I really can't find where! I've been stuck with this error for 2 hours now:
trying to index a variable which is not an array
at gml_Object_obj_textbox_Other_11 (line 2) – text_wrapped = string_wrap(text[page], text_max_width)
I've been looking for a good explanation for setting up the groundwork for a robust dialogue system for a while and this is the best explanation I've seen anywhere. I really appreciate it.
Thank you so much for putting your dialogue system on the marketplace. This is going to help me a lot! I really appreciate you, FC! Please make more videos & please release a quest system demo as well.
Lots of love to you! Cheers
Hey, when I changed my display_set_gui_size, my inventory got screwed up (predictably), but then didn't change back when I adjusted for scale. Everything appears stretched horizontally and squished vertically. Do you have an idea of why that might be? Or is this something specific to the way that I am doing things?
I have so many problems xP . I've been reproducing all of your tutorials, and as the time passed, I've been having these bugs, for example, mb_middle drops random items, the descriptions disapeared, the font changes sizes when I drop something. Please help >.< (again :/ )
I spent an hour trying to figure out why my portrait, namebox, and textboxes were not aligning properly. Finally I realized that when importing the sprites, the origin default was middle center, and they all needed to be top left 0, 0 origins. Hopefully this will save others some time if they hit the same problem. Ugh!
Only 700 views?! I'm lucky to be one of your disciples! Thank you for making so many great tutorials
im proud that im one of the 614 people that made it to part 19 without giving up. 🙂
These tutorials are so well made! I hope you also include special keyword colors, been biting my head around this for quite a while 😀
thank you so much. I am from Brazil and I love your tutorials.
I love the humor you added to the text in the intro. You are amazing!
So happy this was uploaded today 🙂
This is great! I really love this series, and can’t wait to see more!
thank you for gamemaker video
I love this series, keep up the good videos! 👍