1. giraffeman210

    SOLVED Line Break Help

    I can't seem to figure out the line break for text. I am just looking for a simple way to split a string of text to another line, but everywhere I look I get something different and it doesn't work. Even using the manual I can't get it to work. Am I missing something? Thanks!
  2. M

    SOLVED How to align text to be in the middle of the room?

    I want my text to be in the middle centre of x axis of the room (whatever the text length), how can i do this
  3. R

    [SORTED OUT]adaptable textbox

    hello guys, i'm trying to make a text box that change its size according to the size and line break. Well, I even managed to get the code to work, see: //this code is part of an algorithm, so I'm just showing the main part var string_w = string_width(global.item_info[_item]); var string_h =...
  4. H

    GMS 2.3+ String with width 0 - cannot fit into callstack???

    I'm not sure why, but in my Draw GUI event I can no longer draw strings. When the debugger reaches the line of code which should draw a string, I just get the phrase (Here the string is just the word Charm, and oMite is the object which does just about everything in my game) I watched a few...
  5. Heavybrush

    drawing a sprite on a text using a text alpha

    hello guys I'm trying to make a particular effect I need to mix a text drawn by code and overlap a sprite to use a particular blend mode the only thing, I don't want to break the background, i need it only on the text maybe using gpu alpha?? ps: as a plus, by any chance, there is a way to...
  6. Telorr

    GMS 2.3+ Multiple Color in 1 draw_text_color

    Hi! I have a question. Is it possible to make a text with multiple color in 1 draw_text_color? If it's impossible, is there any alternative for this matter? Sorry for bad english. Thanks!
  7. L

    Text disappears when Pausing

    Hey guys, when I pause the game while the text is still progressing, everything works fine. But when I pause it after the text has finished typing out, it disappears. This happens even when I start the room with textprogress at a really high value and it happens when the text would have finished...
  8. Anixias

    SOLVED Mapping Delete Key to ord("\x7F") For Use With keyboard_lastchar

    Hi, all. I'm attempting to make a robust textbox system using keyboard_lastchar. This works automatically with backspaces as long as you handle "\b" as removing the character the cursor is on rather than literally adding the character "\b" to the string. It also automatically works with holding...
  9. S

    Clickable options refuse to be clicked on

    I'm trying to make clickable text-based menu options. I've made it so that when the mouse is in the rectangle surrounding the text, it will change color and highlight. I tried using the same method in a Left Mouse Down event, where if the mouse is clicked while the mouse is in the text...
  10. FoxyOfJungle

    GMS 2.3+ Scrollbar problem

    I've been trying to understand how to make a scrollbar for a few hours, I managed to make it work by dragging with the mouse, but there is a problem, a part is left out: My goal is to return a value between 0 and 1. I did it, but it goes over the limit, and no, it’s not just subtracting the...
  11. Slothagami

    GMS 2 Color coding strings at runtime

    I'm making my own version of code writer, just for fun, and I am want to make the text color coded for the languages I intend to use it for (html, css, javascript, etc...). So the problem is that I need to change part of a strings color based on context, (check if it's in brackets and things)...
  12. Daniel Mallett

    GMS 2.3+ Organizing colours and text

    Throughout my code on many of my games/applications, I find my self using the following types of commands: draw_set_colour(); draw_set_font(); draw_set_halign(); draw_set_valign(); It's starting to get messy. I don't like having to keep setting these in different sections of code. I can't...
  13. William Garrison

    GMS 2 Text Box Height

    How would I go about capturing the height of text that is being written to the GUI? Not really sure what code to paste here. Right now I am drawing a box with 9 slice, the printing the text on top of it a character at a time (like most games). Below is what it current looks like. The height is...
  14. Andymakeer

    GMS 2 Surface blend turns overlapped text black

    Hey guys! So I was playing with surfaces and blend_modes and found out its possible to customize the blending results. I was trying to draw text to an alpha-cleared surface, but the result was kinda ugly. Then, after studying a little, i was able to "ignore" the surface color and alpha blend...
  15. mbeytekin

    file_text_open_read() doesn't open file for reading with associated files

    My code like this if projectfile = "" || !file_exists(projectfile) { exit; } var _fname=file_text_open_read(projectfile) ... as you see I checked file exists and then open it for reading. Normally it works, but if I try to double click my programs own associated file and...
  16. A

    GML Can I use the same font with 2 different sizes in the draw gui?

    I searched on google and found no way to change the font size Help me pls, i'm noob xd
  17. Y

    Question - IDE Is it possible to emulate the middle click functionality?

    Hey folks, The mouse I currently use (Logitech MX Anywhere 2) does not have the ability to perform a middle click as input. I am wondering if it is at all possible to emulate the documentation functionality that would otherwise be present when selecting methods in the text editor. Thank you.
  18. Kyrieru

    GMS 2 Seperate numbers in a string into an array? (solved)

    I'm loading a text file with lines like; 1,5,12 And I need to convert it into an array. I understand (more or less) how I would have to do this, but frankly as more of an artist than a programmer; when I think about it my soul tries to leave my body. Because I know I will stumble over it...
  19. Jesus17

    GMS 2 Could you guys please help me? Text and talking sprite animation

    Hey guys I'm new at this. I'm from Colombia bu I had to come here bc I can't get enough information for my "problem" As you can see at the title I wanna know how to stop my sprite animation "How to stop its mouth when the text finishes (bc it is a typewritter effect)" because its mouth keeps...
  20. flyinian

    SOLVED Help with adjusting sprite size to fit text

    I am trying to have the sprite adjust itself so that the text fits within the sprite. Along the x and y axis. I am also trying to have the sprite adjust itself no matter the width or height of the text. The issue I am having is the sprite is stretching and certain parts of it is larger than it...