RPG Textbox in GameMaker Studio 2 | Tutorial

Поділитися
Вставка
  • Опубліковано 18 гру 2024

КОМЕНТАРІ • 174

  • @cjtodd6244
    @cjtodd6244 3 роки тому +3

    lol the text box portraits are so derp I love it

  • @FioreFire
    @FioreFire 4 роки тому +12

    For something like this, I would very very VERY strongly recommend adding a function that goes through your text and inserts line-breaks for word-wrapping *before* the text is drawn to the textbox. A word appearing on one line and then suddenly jumping to the next is distracting to read, and looks very unprofessional.
    It's an easily fixable flaw that even competent indie devs overlook, for some reason

    • @NanoBlogger
      @NanoBlogger 4 роки тому +3

      Could you help me out a little with this??? How can I wrap it around?

    • @naelpontes8444
      @naelpontes8444 2 роки тому

      @@NanoBlogger @NanoBlogger just use
      in the text string for line-break.

  • @namedude_dev
    @namedude_dev 4 роки тому +15

    1:08 don't mind me just a timestamp so i don't forget where i was at tomorrow

  • @Joemanf
    @Joemanf 4 роки тому +2

    Thank you so much for making this. I've literally been going crazy trying to figure out how to do 9 slice (especially after the 2.3 update), but your tutorial made it quick and easy. I literally can't thank you enough for this

  • @polpotbaza9489
    @polpotbaza9489 4 роки тому +2

    Your code is a blessing, it's so easy to modify. You have my biggest respect. If i ever publish game, you've got yourself a guaranteed place in special thanks.

  • @RadRain11
    @RadRain11 3 роки тому +33

    For those using this tutorial after the scripting update, Make sure you convert the script to have a function!
    You can do this by creating a function with the existing arguments and pasting the code inside the function. and instead of calling the script make sure you call the function!
    Example
    function draw_the_slice(_x, _y, _w, _h, _sprite, _subimg){
    Code here
    }
    and then on the call
    draw_the_slice(x, y, width, height, sprite_name, 0);
    Hope this helped someone

    • @cjtodd6244
      @cjtodd6244 3 роки тому +4

      Not all heroes wear capes.

    • @maxhoag2362
      @maxhoag2362 3 роки тому

      Where would i put that function? im new to gm and i am confused on this.

    • @cjtodd6244
      @cjtodd6244 3 роки тому +2

      @@maxhoag2362 create a script and put the code in the function. creating a script should write the function code and you just put your code into the brackets and it should work the same way it does in this video.

    • @dxgamer955
      @dxgamer955 3 роки тому +1

      Now I understand how scripts works! Thanks a lot!

    • @UMAoPLAYZ
      @UMAoPLAYZ 3 роки тому +1

      I Can't Understand How Do It, I am new, So Where Do I Place Example Code & The On The Call?? I am Confused...
      I have a error -
      ERROR in
      action number 1
      of Create Event
      for object :
      Push :: Execution Error - Variable Get -15.argument(90, -2147483648)
      at gml_GlobalScript_draw_9slice (line 9) - var _x = argument[0];
      Help!! :((

  • @KingNovek
    @KingNovek 3 роки тому +2

    Thank you for this short and effective tutorial :) still works flawlessly in GMS 2.3. Just remember to align your text vertically and horizontally too :)

  • @furbyteaspoon4091
    @furbyteaspoon4091 2 місяці тому

    Thats really cool, now i have to figure out how to place the sprites alternating reft and right of the text.

  • @omarsardar1182
    @omarsardar1182 4 роки тому +1

    The tutorials on this channel are ridiculously good. Thank you so much

  • @misticloud_real
    @misticloud_real 3 роки тому +1

    Helpful tutorial. That was exactly what I was looking for.

  • @frankiejrey
    @frankiejrey 3 роки тому +3

    You clicked the NPC to show the textbox, however I have both mouse buttons tied to other actions. How can I set it so that I can walk up to an NPC an activate the textbox by either touch or pushing another key?

    • @mahibfazley7486
      @mahibfazley7486 2 роки тому +1

      You probably don't need this anymore, but you can change the "left-pressed" event to a "collision event" with the NPCs so that when your player collides with the NPC, the textbox activates.

  • @cupric5269
    @cupric5269 2 роки тому +1

    Thank you, but I have a question how to make the player himself approach the object and start a dialogue?

  • @GameMakerStation
    @GameMakerStation  5 років тому +6

    I realized that I could've just left the *sImage* origins at top-left and just drew them at _drawX_ & _drawY_ . Welp, this is what I get for being on a tight schedule 🤷‍♂️

  • @onyourpocket8642
    @onyourpocket8642 5 років тому +7

    Ahhh man i am having an error :(
    "trying to index a variable which is not an array
    at gml_Object_obj_textbox_Step_0 (line 3) - var _text = _arr[MSG.TEXT]"

    • @GameMakerStation
      @GameMakerStation  5 років тому

      Something is wrong with your messages array, or your messageID number is out of range.

    • @lukehowe4188
      @lukehowe4188 4 роки тому

      @@GameMakerStation Yeah uh I have the same issue?

    • @GameMakerStation
      @GameMakerStation  4 роки тому

      @@lukehowe4188 You can get help on our Discord: discord.gg/TykHyqK

    • @ЕлизаветаВасильева-п7т
      @ЕлизаветаВасильева-п7т 4 роки тому

      @@GameMakerStation hi, how did you solve this problem?

    • @GameMakerStation
      @GameMakerStation  4 роки тому

      @@ЕлизаветаВасильева-п7т I can't tell how the issue can be solved without seeing the code. Something must be wrong with how your arrays are set up. So do join the Discord server so we can see your code and help out.

  • @sxmstudios2854
    @sxmstudios2854 4 роки тому +1

    I am trying to work on getting the voice overs for the dialogues. Is there a tip on how I can do this? I tried using audio_play_sound(snd file, 0, false) to left pressed event and it only responds to the first dialogue and not the other.

    • @GameMakerStation
      @GameMakerStation  4 роки тому +1

      I think you should store the audio asset for each line in that line's array, just like it has the speaker's name, icon and the message itself. So the audio line would be the 4th element in that array (if you're using 2.3, I suggest using constructors). When the textbox system goes to that line, just play its audio.

  • @cupric5269
    @cupric5269 Рік тому

    I am problem, in room_1 the size is 450x320 because of this, the size of the sprite (dialog) is stretched, I changed the position and size does not help

  • @rotapander
    @rotapander 2 роки тому

    Finally a tutorial that works really well! Btw how can I adjust the font size? :D

    • @GameMakerStation
      @GameMakerStation  2 роки тому +2

      Create a new Font asset (in the Asset Browser on the right) and apply that font asset to your textbox before you draw your text, with draw_set_font().

  • @dopamine7344
    @dopamine7344 2 роки тому

    now that theres built in 9 slice features would you recommend doing this a different way?

  • @ChanceDAFull
    @ChanceDAFull 3 роки тому +1

    Hello, I have it all working fine, but when I tried to implement this with my cutscene system (from friendly cosmonaut) the textbox disappears for a frame when pressing enter. Do you know how this could be fixed?

    • @tremitygames
      @tremitygames 3 роки тому

      You can ask this in the Game maker server or Matharoo discord server

  • @Waliente
    @Waliente 4 роки тому

    Great tutorial! Works fine!

  • @offbeat0008
    @offbeat0008 2 роки тому

    I'm probably just being really dumb here, but I don't see where the draw_9slice script is actually used.

  • @riririn7544
    @riririn7544 3 роки тому

    Thank you! Your tutorial is very useful!

  • @lionjeff1640
    @lionjeff1640 5 років тому

    Great tutorial, thanks for sharing this! I’ve seen you on many GMS forums, subbed :)

  • @bagelthebeagle11
    @bagelthebeagle11 Рік тому

    okay now at 5:40 its saying malformed variable reference

  • @bioshockgril
    @bioshockgril 4 роки тому +1

    How you would you go about changing the dialog for interacting with the npc a second, third, forth time?

    • @NanoBlogger
      @NanoBlogger 4 роки тому +2

      Assign a variable for times spoken to the npc..? Then if variable=1,2,3 etc {dialog 1}, {dialog 2}, {dialog 3} that’s how I do it

    • @bioshockgril
      @bioshockgril 3 роки тому

      @@NanoBlogger yeah I was trying that but it wasn't working too hot...

  • @AiguretDuren
    @AiguretDuren 4 роки тому

    Thanks for the great tutorial!

  • @amordeoferio3138
    @amordeoferio3138 4 роки тому +1

    having problems, Im using GMS2
    "trying to index a variable which is not an array
    at gml_Object_obj_textbox_Step_0 (line 3) - var _text = _arr[MSG.TEXT]"

    • @GameMakerStation
      @GameMakerStation  4 роки тому +1

      Hey! There's likely an issue with how your message array is set up (or how you're reading it). I can't provide more help without seeing the rest of the code, so consider joining our Discord server and posting it there. :)

  • @atreino0872
    @atreino0872 2 роки тому

    hey hello a question
    when i want pause player when read text wath i do?

  • @erraww
    @erraww 3 роки тому

    Is it possible to trigger text box when a player is colliding with an object, AND looking at it in rpg game? (like in undertale) 😅😅😅

  • @tidusxcloud0005
    @tidusxcloud0005 3 роки тому

    Hey man, great tutorial! Works like a charm. Just wondering though, I have an npc which, when the character collides with a hitbox, they can interact with the npc and the text shows. I tried creating another npc, and I duplicated the previous npc and changed the lines only. However, this resulted in a constant loop where the text keeps replaying with no stop to it. Any idea what could have caused this?

  • @annevandenbosch4901
    @annevandenbosch4901 3 роки тому +1

    Hey, im new to this and now i got the error:
    Script: draw_9slice at line 17 : cannot use function/script name for a variable, using "_x"
    eeh help pls

    • @GameMakerStation
      @GameMakerStation  3 роки тому +1

      Look for all references to _x and see if you're doing anything wrong with it, maybe in the function's parameter list...

  • @Ramon20Carvalho
    @Ramon20Carvalho 4 роки тому

    Hello, how can I use the array system in game maker studio 1.4? Unfortunately I don't have access to the game maker studio 2.

  • @cathaks
    @cathaks 3 роки тому +2

    My draw_9slice script won't work and it's really bugging me, please get back as soon as you can
    Cheers,
    A Literal Moth

    • @FredTN14
      @FredTN14 2 роки тому

      probably because you need to add the function to the scrip, his version is old, thats a new system to make a script

    • @cathaks
      @cathaks 2 роки тому

      @@FredTN14 this was old, but I realised that

    • @FredTN14
      @FredTN14 2 роки тому

      @@cathaks yea lol

  • @MrX-qw6ph
    @MrX-qw6ph 4 роки тому +3

    Everything is working perfect for me but i have a question, how to i make it play a sound when ever it draws the text, for example like MegaManX, EarthBound and undertale.

    • @AiguretDuren
      @AiguretDuren 4 роки тому

      Hey there, I was curious about this, too, so I have set up a code example on Github: github.com/kgar/GameMakerStation-Matharoo-RPG-TextBox-Tutorial
      My sound effect is called "snd_Snare". It's not very good, but it's only for this example.
      In oTextbox > Step event, I put this code around the string_copy (seen here: github.com/kgar/GameMakerStation-Matharoo-RPG-TextBox-Tutorial/blob/master/Project/objects/oTextbox/Step_0.gml#L7):
      var previousLength = string_length(messageText);
      // Get message string
      messageText = string_copy(_text, 1, messageChar);
      if (string_length(messageText) > previousLength) {
      audio_play_sound(snd_Snare, 10, false);
      }

    • @ThomasFoolery
      @ThomasFoolery 3 роки тому

      @@AiguretDuren hero.

  • @nickwagner7137
    @nickwagner7137 4 роки тому

    Any idea why my textbox is too big going down and to the right? It's basically off screen

  • @bionicleanimatedofficial8207
    @bionicleanimatedofficial8207 4 роки тому +1

    How do you add text speed/ color/ sound in a text box?

    • @GameMakerStation
      @GameMakerStation  4 роки тому +1

      The speed would be the value added to the character position every step, you can change the color with draw_set_color (make sure to reset it to c_white after drawing) and a letter sound can be played with an alarm running in the textbox object.

    • @bionicleanimatedofficial8207
      @bionicleanimatedofficial8207 4 роки тому

      @@GameMakerStation you should make a part 2 for this tutorial on how to improve it more.

  • @polpotbaza9489
    @polpotbaza9489 4 роки тому

    I have a little trouble: unfortunately, the size of sprite I use for picture of face in text box, has different size in game than size in which it is created. Do you know which line of code causes it? For example, yours sprite is around 60 by 69, and in game it becomes 150 by 90.

    • @GameMakerStation
      @GameMakerStation  4 роки тому

      If you're using draw_sprite_ext() to draw the image, then it may be the scale values. If not, then the GUI layer may have a different size than that of the game. Trying changing the GUI's size using display_set_gui_size(); set it to the size of your camera.

  • @mikhailperkhov
    @mikhailperkhov 5 років тому +2

    I love the music in the end)) Where can i find full version?)) Thanks for video)

    • @GameMakerStation
      @GameMakerStation  5 років тому +5

      Hey Mikhail! I specifically made that song for my outros. So there's no full version, that's all there really is. :)

    • @mikhailperkhov
      @mikhailperkhov 5 років тому +1

      @@GameMakerStation, It's awesome)

  • @nousky5087
    @nousky5087 2 роки тому

    Hi, I have such a problem
    every time I press enter, it always says 2 message
    I will appreciate any help

  • @Learnjapanesefromsomeguy
    @Learnjapanesefromsomeguy 3 роки тому

    One tutorial suggestion I would like to make, since you made a JRPG looking textbox, would be a random encounter system.

  • @NalanHi
    @NalanHi Рік тому

    Hello How can I resize the text I don't know how to do it qwq

    • @gibsongamin
      @gibsongamin Рік тому

      Go to your fonts, and you can make them BIG or small.

  • @eunit08
    @eunit08 4 роки тому +1

    Ok. I was able to add in sub images to save on resources, but do you know how to add in animation? Also is it possible to do animation in the draw even in general? Thanks for your time

    • @GameMakerStation
      @GameMakerStation  4 роки тому +2

      Sure, you need to create a variable for storing the frame number, and you can pass that into the second argument of your draw_sprite_ function. That's how you can control which frame is drawn for a sprite, and thus enable animation.

    • @eunit08
      @eunit08 4 роки тому

      @@GameMakerStation ok thank you. I will apply that and get back to you on the results

    • @eunit08
      @eunit08 4 роки тому

      @@GameMakerStation the second argument is where I already have set the sub image of the textbox sprite. It is in the Draw GUI event in obj_texrbox. Where do i add where to make the sprite animate?

    • @GameMakerStation
      @GameMakerStation  4 роки тому +1

      @@eunit08 Whatever sprite you're drawing with a draw_sprite() function, can be animated with that second argument, considering the animation is in the frames of that sprite. If you're talking of some other sort of animation, let me know.

    • @eunit08
      @eunit08 4 роки тому

      @@GameMakerStation with the second argument in the draw_sprite() funtion i have the sprite's sub image where i can choose which sub image or frame to use.
      Let's say i want the person talking to be laughing but not be a still picture or waving his arms, or jumping. I want to have it cycle through the sub images like it was it's own object.
      Im assuming since it's in the Draw event, it wont work

  • @axjacks4311
    @axjacks4311 3 роки тому

    Hello, great tutorial. I do not like my character sprites to be covered during dialogue; Is there a way to change the size of the textbox or maybe the location? Thank you!

    • @GameMakerStation
      @GameMakerStation  3 роки тому +1

      Yes, you can modify the code :) Look at it and try to understand how it works and what each part does, then you can change it yourself.
      You can also join the Discord server given in the description to get help.

    • @axjacks4311
      @axjacks4311 3 роки тому +2

      @@GameMakerStation Ok I will! One more request. I want my character to be unable to move when a text box is open. I created a variable global.canmove that is set to true by default. I have it situated so if it is false you cannot move. How would I configure it so it is set to false when the box opens but true after it closes? Many thanks!

    • @questionm521
      @questionm521 2 роки тому +1

      i like men

  • @thebobby6827
    @thebobby6827 Рік тому

    Is there a way I can make it so that instead of clicking on the NPC to have the text box appear I can instead press enter on it instead? Great video btw helped a lot !

  • @naelpontes8444
    @naelpontes8444 2 роки тому

    why did you name one of the variables "messages" and another one as "msg"? Isn't it better to just make those two the same?

  • @linkmp7409
    @linkmp7409 Рік тому

    for what code i can change this line draw_9slice???
    now is not working

    • @belov3dfool
      @belov3dfool Місяць тому

      Did you ever figure out what to do to fix it? I'm having similar issues.

  • @coxyofnewp
    @coxyofnewp 5 років тому

    Yeah really nice well explained tutorial.. works well.. Nice work!!

  • @makstorandjohnny
    @makstorandjohnny 4 роки тому

    Unable to find instance for object index -4
    at gml_Object_oNPC_Collision_oPlayer (line 20) - var _list = _tb.messages;
    gml_Object_oNPC_Collision_oPlayer (line 20)
    _____
    This error appears if the NPC is in another room

  • @bagelthebeagle11
    @bagelthebeagle11 Рік тому +1

    idk if this channel is still even active but, at 3:25, the version of gms2 im using(the newest one) doesnt seem to have this function. if anybody knows an alternative or a different way to do this code altogether, please tell me.
    edit: i think im just not doing this right so please tell me what im doing wrong
    im a beginnner lol
    edit again: turns out i just forgot to name the script draw_9slice so uhhhhhhhh

  • @doymountain1006
    @doymountain1006 4 роки тому

    Thank you very much for this vid ^^ very helpful

  • @rei2684
    @rei2684 3 роки тому +1

    How do i put choices with that ?

    • @GameMakerStation
      @GameMakerStation  3 роки тому +1

      That's gonna be a whole new system, and honestly that is very complicated so I can't give suggestions here in the comments. I recommend joining the Discord server in the desc. and asking there.

  • @pixelgoose98
    @pixelgoose98 Рік тому +1

    umm text wraping dont work

  • @russiangremlin7012
    @russiangremlin7012 4 роки тому +1

    is there any way to add sound to the text

    • @GameMakerStation
      @GameMakerStation  4 роки тому +1

      Sure. For this you can use the messageChar variable. Keep track of the "previous" messageChar value (the one from the previous step). Just store it in another variable (messageCharPrev) before you update it.
      Then at the end of the event, get the difference between the floored values of both variables (floor(messageChar) - floor(messageCharPrev)). This would mean that the character count has gone up (for example, from 2 to 3, instead of just from 2.2 to 2.3). Then you can play a sound!

    • @russiangremlin7012
      @russiangremlin7012 4 роки тому

      @@GameMakerStation awesome thanks

    • @russiangremlin7012
      @russiangremlin7012 4 роки тому

      @@GameMakerStation also I don't know why but sometimes it won't load properly like the text isn't right and it's not centered

    • @GameMakerStation
      @GameMakerStation  4 роки тому

      @@russiangremlin7012 Must be your alignment values - make sure to always reset halign to fa_left and valign to fa_top after changing them. You can join our Discord server (in the desc.) for more help :)

  • @张家地
    @张家地 3 роки тому

    how to deal with unocode char noy only english?

  • @melaniezupnik4679
    @melaniezupnik4679 4 роки тому

    Hey man, I've got a problem but I'm pretty sure that I did exactly what you did. The text and the characters' picture is being drawn at the top left of the box, and are much more small than they should be, even if I set them to the same size of sprite that you have. Please respond if you can, I'm doing this for a school project
    Btw, I'm using gamemaker studio 2.3, don't know if that's relevant

    • @melaniezupnik4679
      @melaniezupnik4679 4 роки тому

      Okay, I changed the padding to 70 and the sprites to 200 and they look better. But the text is still aligned to the right and writes over the sprites, any ideas?

    • @melaniezupnik4679
      @melaniezupnik4679 4 роки тому

      I tried doing this, but it's a mess. It goes out of the textbox and overwrites the name and sprites. How can I align the text to the left?
      _drawX += (_imageW*5.6) + padding;
      }
      // Draw name
      draw_text(_drawX, _drawY, _name);
      _drawY += string_height(_name) + padding;
      // Get maximum width for text
      var _maxW = width -200;

    • @GameMakerStation
      @GameMakerStation  4 роки тому

      draw_set_halign(fa_left). You probably set the alignment to fa_right somewhere and forgot to reset it to left.

  • @LithtinaVtuber69
    @LithtinaVtuber69 4 роки тому +1

    Is there any changes to the code, If I would want the face-sets to change emotions?
    Great vid btw

    • @GameMakerStation
      @GameMakerStation  4 роки тому +3

      You could include all the face emotions in the same sprite (as sub-images/frames). Then in the array where you store the [message,name,sprite] you could add an image-index element, that would change depending on the emotion you wanted to show. You'd then use that image-index value from the array when drawing the sprite in the textbox.
      Hope this makes sense! I suggest joining our Discord server (link in desc.) for more help.

  • @matheusghx
    @matheusghx 3 роки тому

    Hey man do you help me? how to add sound effect with dialogues?

    • @GameMakerStation
      @GameMakerStation  3 роки тому +4

      When you move to the next character, play a sound... So before changing messageChar you can store its value in a temporary variable, then compare that with the changed messageChar to see if it has gone up and in that case play your sound effect:
      (In the code shown at 7:37)
      var _prevChar = messageChar;
      if (messageChar

    • @matheusghx
      @matheusghx 3 роки тому +1

      ​@@GameMakerStation Yes it works for me!, thank you so much guy you saved me again :)

    • @goken-san9224
      @goken-san9224 3 роки тому

      @@GameMakerStation How do you add a voice over to the dialogues based on that code?

  • @laerciosantos8180
    @laerciosantos8180 5 років тому +1

    works in gamemaker studio 1.4?

    • @GameMakerStation
      @GameMakerStation  5 років тому

      It should, with some required changes. If it doesn't work, use our Discord server for help: discord.gg/TykHyqK

  • @nicolunax
    @nicolunax 4 роки тому

    is there a way to change the color of the text?

    • @nicolunax
      @nicolunax 4 роки тому

      o fuck, found it, sorry, good tutorial

  • @elieveuvu6823
    @elieveuvu6823 4 роки тому +1

    how do i do this with the DnD????????????

    • @GameMakerStation
      @GameMakerStation  4 роки тому +1

      I suggest learning GML. You can do a lot with DnD, but it's cumbersome to use and there aren't many resources for it out there.

  • @Валерик-э9и
    @Валерик-э9и 4 роки тому +1

    Best tutorial
    ......

  • @maddevmonkey6114
    @maddevmonkey6114 4 роки тому

    Great tutorial! Everything works except I cant see the name in the text box.

  • @Валерик-э9и
    @Валерик-э9и 4 роки тому

    Does It work in gms?? it's just that there is an error associated with mgs.....(yandex translate)

    • @GameMakerStation
      @GameMakerStation  4 роки тому

      Yes, it should work, but you'll need to change how arrays are created.
      For example, in GMS2 you can do this:
      var arr = [0, 1, 2]
      In GMS1.4, you have to do this:
      var arr;
      arr[0] = 0;
      arr[1] = 1;

    • @Валерик-э9и
      @Валерик-э9и 4 роки тому +1

      @@GameMakerStation thanks

    • @Валерик-э9и
      @Валерик-э9и 4 роки тому

      @@GameMakerStation but can you give a little more specific answer ?)
      I'm a little confused about where to use it..... if you don't mind

    • @GameMakerStation
      @GameMakerStation  4 роки тому +1

      @@Валерик-э9и Sure, please join our Discord server and we can help you out: discord.gg/TykHyqK

  • @dmac2016
    @dmac2016 4 роки тому

    In full screen, it won't work. Any solution? Thanks!

    • @GameMakerStation
      @GameMakerStation  4 роки тому

      Try setting a custom GUI size (with display_set_gui_size())? If that doesn't work, hop into our Discord server (link in desc.) and ask there.

    • @dmac2016
      @dmac2016 4 роки тому

      @@GameMakerStation What draw size?

    • @dmac2016
      @dmac2016 4 роки тому

      And it still didn't work

    • @GameMakerStation
      @GameMakerStation  4 роки тому

      @@dmac2016 try the size of your camera?

    • @dmac2016
      @dmac2016 4 роки тому

      I don't use camera on gms 2

  • @BestTubeBesTube
    @BestTubeBesTube 5 років тому

    Hello, i started the game maker 1.4 (my old humble bundle key) can we use this in gm1.4 version. Also thank you so much, these tutorials are very useful and your accent pretty nice/ understandable

    • @GameMakerStation
      @GameMakerStation  5 років тому +4

      Yes, it should work, but you'll need to change how arrays are created.
      For example, in GMS2 you can do this:
      var arr = [0, 1, 2]
      In GMS1.4, you have to do this:
      var arr;
      arr[0] = 0;
      arr[1] = 1;
      And so on

    • @BestTubeBesTube
      @BestTubeBesTube 5 років тому +1

      @@GameMakerStation thank you

  • @cupric5269
    @cupric5269 Рік тому

    I had a problem, in room_1 the size is 450x320 because of this, the size of the sprite (dialog) is stretched, I changed the position and size does not help

  • @lukehowe4188
    @lukehowe4188 4 роки тому

    6:08

  • @inhphamlehoang9029
    @inhphamlehoang9029 4 роки тому

    dead link

    • @GameMakerStation
      @GameMakerStation  4 роки тому

      Hey, it should be working now. I was just doing some website maintenance back then :)

  • @theneoncactus2743
    @theneoncactus2743 4 роки тому

    now *that* is a clickbait

  • @wolfyro6354
    @wolfyro6354 3 роки тому +4

    I don't understand : when I start the game, it doesn't start and it tells me this : Script :
    Script1 at line 11 : cannot use function/script name for a variable, using "_x"
    I tried calling it litteraly anything else and yet it still doesn't work

    • @UMAoPLAYZ
      @UMAoPLAYZ 3 роки тому +1

      Same :(, PLS Any Solution???

    • @shalannii
      @shalannii 3 роки тому +1

      @@UMAoPLAYZ me too, have you found a solution yet?

    • @UMAoPLAYZ
      @UMAoPLAYZ 3 роки тому +1

      @@shalannii Yes, W8 I will Answer Soon!

    • @UMAoPLAYZ
      @UMAoPLAYZ 3 роки тому +1

      @@shalannii Just Write This Before The 9slice code-
      function draw_the_slice(_x, _y, _w, _h, _sprite, _subimg)
      {
      Code here
      }

    • @davithehuman4432
      @davithehuman4432 3 роки тому +1

      @@UMAoPLAYZ didn't work.
      "Script: nineslice_textbox at line 10: cannot use function/script name for a variable, using "_x" "

  • @kibegamimultimedia
    @kibegamimultimedia 4 роки тому

    Good tutorial though but.. Why the hell are you talking like a robot? Just curious lol

    • @juicimated
      @juicimated 4 роки тому +4

      It's an accent, and it's also kind of rude for you to ask that, it's obviously not their fault

    • @kibegamimultimedia
      @kibegamimultimedia 4 роки тому

      @@juicimated Easy now, it was just a question from.. Oh, two months ago. Took ya long enough much?

  • @dsansoficial
    @dsansoficial 3 роки тому

    hey, im having a trouble here, can you help me?
    ERROR in
    action number 1
    of Create Event
    for object :
    Push :: Execution Error - Variable Get -15.argument(90, -2147483648)
    at gml_GlobalScript_draw_9slice (line 9) - var _x = argument[0];
    gml_GlobalScript_draw_9slice (line 9)
    please help me, i already tried to fix this and didn't work

    • @anho0o
      @anho0o 3 роки тому

      let's add function to Scripts,his version is old

  • @bybony5337
    @bybony5337 4 роки тому +3

    I am having an error. It says me "the object its not specified"

  • @SuperSonicAdvance07
    @SuperSonicAdvance07 4 роки тому

    Hey how can I possibly attach this on an object and make my player character walk up to it press a button and then the text can appear?

    • @bioshockgril
      @bioshockgril 4 роки тому +1

      the object should just be the npc, then just change it from keyboard check vk_enter to the mouse check

  • @TheepicCop
    @TheepicCop 3 роки тому

    There’s a way so I can make the font change?

    • @GameMakerStation
      @GameMakerStation  3 роки тому

      Create a new font asset, and before drawing your text use draw_set_font() to change the font to your new asset

    • @TheepicCop
      @TheepicCop 3 роки тому

      @@GameMakerStation thx