text

  1. D

    Cropping the text at the bottom of a text field

    Hello guys! One thing that is a bit strange in GMS is when you use draw_text_ext and you want to wrap a word it doesn’t work properly if one word is longer ( in pixels) than the width of the text field. Fortunately, I got some help from one user and it works almost perfectly now with one...
  2. RizbIT

    fit font into a circle

    Can the size of a font be dynamically or programaticaly be changed during runtime to fit a variable string into a set sized circle or square?
  3. L

    No Text after Dying[solved]

    Hey, i have an other annoyance... I have sign posts that act as some kind of tutorial. The Signs are working perfectly, but after the player died once, no text is apperaing. the camera is still focused on the sign untill the text is written, but there is no actual text... here is the code...
  4. Kiwi

    GMS 2 Special characters in a string?

    I'm fairly new to GML, so this question may sound a little nooby. It's also my first post! :) So I've made a typer object which types out a string, letter by letter, which works fine. I've also made it so that when it detects a certain character, it does some kind of action. Like pausing or...
  5. S

    To print text by one letter

    I learned how to print text a while ago. But I wanted to know how to print text one by one, so I watched the video, and I didn't understand. If you know how to print text one by one, could you tell me? I can only think of how to print one character after another.
  6. T

    GML Squish text after two lines

    Hello I am drawing text into a sprite box of a fixed size, 1200 pixels wide and enough room for 2 lines of text. I am using the following to wrap the text so it is not drawn off the sides of the sprite draw_text_ext(x,y,thisText,-1,1200) where x,y is the centre of the sprite and thisText is the...
  7. L

    Shaking text (like in Undertale)

    Hello! I have the dialogue system from https://gamejolt.com/f/game-maker-super-easy-typewriter-like-dialogue-example/1908 . I figured out a way to change colors, pause the text and everything I need. But I need help. I don't know how to make every letter shake, like here: Can somebody help me...
  8. giraffeman210

    Drag And Drop Player in game typing

    Can I make a way for the player to type something in my game? I would like the player to be able to type in a number and it sets a variable to that number. I am using GMS 2 and DnD Thanks!
  9. F

    GML Draw text inside object

    So i tried to make button with different function, i have a way to make it one by one, but im looking for another way, it just same sprite but different text and function actually work like : if button_a = true go to next room else if button_b = false decrease point else if....c, *button as...
  10. KyleRansford

    GMS 2 \n New Line is being Ignored in dialogs

    I don't know what's going on here or if I'm the only one experiencing this. But usually, when I want to add a new line in a dialog text I would enter \n and the text would go to a new line. But recently, the \n just gets ignored. Is anyone else having this problem? For example, the dialog text...
  11. Pyxus

    GMS 2 Text drawing to surface weirdly

    I'm experimenting with drawing text to surfaces for the sake of optimization, but the text drawn to my surfaces appear weird. The characters are very thin with some letters even appearing to be missing small segments. I am drawing the text using a for loop; I've also noticed that looping the...
  12. RobotoSkunk

    GMS 2 [Solved] Text size adapted in a box

    Hi, how can I make a text adapt its X and Y scale within a limited space? Because I tried to do it and I just can not. What should I do? draw_self(); draw_set_halign(fa_center); draw_set_font(fnt_pixelman); xt = x+lengthdir_x(15*image_xscale, image_angle+90); yt = y+lengthdir_y(15*image_yscale...
  13. Nek Teilaw

    Game Maker studio 2 Text BUG

    If I start the game from the room the text works well. : But if I start my game from the beginning, and the moment I change rooms to go into the text room, the text becomes buggy... : HOW TO FIX ? :'(
  14. Kyrieru

    GMS 2 Getting Japanese text from a a txt file.

    Following some advice I was able to read from a .txt file and get a dialogue system working with english. if file_exists(path+file) { read = file_text_open_read(path+file); var num = 0; while (!file_text_eof(read)) { str[num++] = file_text_read_string(read); message[num] = ""...
  15. EZTALES

    Legacy GM need help on alarm on textbox! (in obj_textbox)

    hey yall, was wondering how to make this textbox appear when you press a button (Z), and only alowing it once at a time so you can't spam. i was thinking about an alarm but dont know how. help? code here: CREATE: showtext =0; STEP: if (place_meeting(x,y,obj_player)) &&...
  16. E

    [Solved] "Tab bar" with varying lengths according to text

    Hey there. I've been trying to wrap my head around this for ages now and I think I'm going crazy. I had something that *kinda* worked but I had to scrap it due to it taking up like 200 lines of code (I'm insanely tired). So what I'm trying to go for is a "tab bar" type of thing. Kinda like tabs...
  17. S

    Text not showing up

    I'm trying to make a title screen for my game, and the text won't show up. Here is the code. var c = c_yellow; switch(room) { case rm_start: draw_text_transformed_color(200, 100, "GAME_TITLE", 100, 100, 0, c, c, c, c, 1); break; } The game screen is 500 x 500 if that helps.
  18. L

    Editable Text

    I'm trying to figure out how to create text that the player can edit. I've only found ones for regular coding but I'm using drag and drop.
  19. M

    Shaking text

    Well... i need to do a shaking text that every letter shakes apart from the rest (like Undertale) and i found a guy that posted a shaking text but it wasn't letter by letter, i tried EVERYTHING (changing that system) and i get something that don't works well (it's a bit bugged and the text...
  20. Josef Scroggins

    GMS 2 Solved Easiest Way To Save Debug Messages?

    I'm using GMS2 and I have been using show_debug_message to get statistics. But I want to be able to track debug info without having GMS2 open. What is the easiest way to put my debug info into a text file while the exe is running?
Top