15 49.0138 8.38624 1 0 4000 1 https://pubvision-network.com 300 true 0
theme-sticky-logo-alt

Dialogue | Farming RPG Tutorial: GMS2 [P19]

36 Comments


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/

Previous
Next

36 Comments

  • July 10, 2020 at 2:39 pm
    Anaguma Rifi

    I came looking for a copper, but i found gold

    Reply
  • July 10, 2020 at 2:39 pm
    Mr. Britton

    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

    Reply
  • July 10, 2020 at 2:39 pm
    Anakay

    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

    Reply
  • July 10, 2020 at 2:39 pm
    Game Set Satch

    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 ;

    Reply
  • July 10, 2020 at 2:39 pm
    スティックのり

    Thank you👩‍💻

    Reply
  • July 10, 2020 at 2:39 pm
    rufinathebrave

    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! 🙂

    Reply
  • July 10, 2020 at 2:39 pm
    Дядюшка Альберт

    как не хватает перевода на русский…

    Reply
  • July 10, 2020 at 2:39 pm
    ERIKIOS

    I wanted so much that I had some tutorial in Portuguese. I don't understand english right. 🙁

    Reply
  • July 10, 2020 at 2:39 pm
    AlphaBeta1

    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)

    }

    Reply
  • July 10, 2020 at 2:39 pm
    LookingForPants

    Thanks!

    Reply
  • July 10, 2020 at 2:39 pm
    ÇayBar Dağı

    08:00

    Reply
  • July 10, 2020 at 2:39 pm
    Hedgehog in The Fog

    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.

    Reply
  • July 10, 2020 at 2:39 pm
    ZakTheFallen

    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.

    Reply
  • July 10, 2020 at 2:39 pm
    Hernando Diaz

    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;
    ############################################################################################

    Reply
  • July 10, 2020 at 2:39 pm
    Nicole Mazur

    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){

    Reply
  • July 10, 2020 at 2:39 pm
    Darky

    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?

    Reply
  • July 10, 2020 at 2:39 pm
    Sammy Sherman

    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?

    Reply
  • July 10, 2020 at 2:39 pm
    RPGtogether

    Wouldn't it be better to deactivate the text-box rather than destroying it?

    Reply
  • July 10, 2020 at 2:39 pm
    RPGtogether

    This series is awesome but can you please call it "G.U.I" coz I don't like hearing ***…

    Reply
  • July 10, 2020 at 2:39 pm
    Tomekeeper

    I love your videos. Every time I find a particularly frustrating problem you tend to have an elegant solution for it.

    Reply
  • July 10, 2020 at 2:39 pm
    Sanvar

    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?

    Reply
  • July 10, 2020 at 2:39 pm
    Corilo91

    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)

    Reply
  • July 10, 2020 at 2:39 pm
    LookingForPants

    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.

    Reply
  • July 10, 2020 at 2:39 pm
    Ol Roody

    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

    Reply
  • July 10, 2020 at 2:39 pm
    Andy Gallup

    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?

    Reply
  • July 10, 2020 at 2:39 pm
    Henrique Carvalho

    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 :/ )

    Reply
  • July 10, 2020 at 2:39 pm
    cchhiipp

    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!

    Reply
  • July 10, 2020 at 2:39 pm
    Gage

    Only 700 views?! I'm lucky to be one of your disciples! Thank you for making so many great tutorials

    Reply
  • July 10, 2020 at 2:39 pm
    Jenul F

    im proud that im one of the 614 people that made it to part 19 without giving up. 🙂

    Reply
  • July 10, 2020 at 2:39 pm
    Leon De Castro

    These tutorials are so well made! I hope you also include special keyword colors, been biting my head around this for quite a while 😀

    Reply
  • July 10, 2020 at 2:39 pm
    Raildo Rodrigs

    thank you so much. I am from Brazil and I love your tutorials.

    Reply
  • July 10, 2020 at 2:39 pm
    Kenneth Kline

    I love the humor you added to the text in the intro.  You are amazing!

    Reply
  • July 10, 2020 at 2:39 pm
    Kenneth Kline

    So happy this was uploaded today 🙂

    Reply
  • July 10, 2020 at 2:39 pm
    keeganButAGhost

    This is great! I really love this series, and can’t wait to see more!

    Reply
  • July 10, 2020 at 2:39 pm
    Larry tesla spacex boring Lawrence

    thank you for gamemaker video

    Reply
  • July 10, 2020 at 2:39 pm
    Stryderjoe Official

    I love this series, keep up the good videos! 👍

    Reply

Leave a Reply