text

  1. 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!
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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)...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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
  12. 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.
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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...
  19. 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...
  20. 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...
Top