1. 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)...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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
  7. 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.
  8. 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...
  9. 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...
  10. 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...
  11. C

    Simple Text Problem

    Hiya! <3 Still bit new to game maker, little slow. Followed Shaun Spaldings platformer video on Signposts. Everything is working just as it should. I'm using the string variable trick to make it easier to change later on. The only question I have is I am unsure how to make multiple pages...
  12. Gleeson

    Question - IDE Text Kerning - "GMKerning" data found in font.yy files?

    (image above is a snippet from the font Quicksand when imported into GMS2 - this is in the .yy file) Hey there - this is probably a very technical question that's probably appropriate for someone at YoYo, but happy to have a discussion about it and spark some interest. So, in going down a...
  13. J

    How to have multiple text input boxes

    So I need up to 6 players to enter their name. That's it! I know how to make 1 textbox, but not how to make multiple boxes that you need to select before typing a name in it. Any help would be appreciated! :) The code I currently have for 1 working textbox comes from this page...
  14. If Programable_Matter

    Windows How to make Program with the ability to highlight the text with the mouse (Cursor)

    I've been making a lot of programs and they have been going well however I cannot make the text that has been drawn "highlightable" like you would be able to in Microsoft Word, Notepad, or other software which deals with characters. Is there are particular code which can enable me to highlight...
  15. Startoz

    Fastest way to load a JSON/text file with tens of thousands of lines?

    Hi, I want to load a large JSON file (more than 40k lines when formatted) and decode it. The system that I'm using at the moment works perfectly fine if all the data is contained in one line (loading the text into a string takes less than 1 second). However, if the JSON is formatted, it takes...
  16. Grez1

    Simple way to implement basic text input

    Ok, n00b to the forums here. I've cranked out a couple of simple games so far and am enjoying GameMaker (note: I'm still on 1.499999 - evaluating as to whether to invest in 2.x). The one thing that I'm finding completely confounding is what would be the most simple of functionality way back the...
  17. T

    Question - IDE GMS2 Text Completely broken after Compiling

    Hey Guys. Yesterday i Updated my GM to and when i try to compile my game on Android the Whole Text is broken. The R´s, S´s And Space´s are broken. It doesnt affect the Performance but its annoying as hell. Does someone know how to fix this?
  18. MaxLos

    Legacy GM [Solved] Text is blurry when drawn in Draw Event, looks fine in Draw GUI

    Hihi, Basically what the title says, just wondering how to fix it... besides using the Draw GUI event of course :p My view port is half the size of the resolution if that helps
  19. Daniel Mallett

    GMS 2 text border issues

    x = 500; y = 500; string_val = "string"; draw_text(x, y, string_val); width = string_width(string_val); height = string_height(string_val); draw_rectangle(x, y, x + width, y + height, 1); I am trying to implement a dialogue with form controls, text, etc. I have been having problems...
  20. R

    Partially transparent text

    Hi, I'm trying to get a part of the text to have a different alpha value. Do you not know how to achieve this?