1. Misael644

    GMS 2 Parts of a string not being removed

    I am creating a function that serves as a textbox generator. The function works like this: //the function dialogue_create("Hello,/60 /03this is a test!","character",0,"left",3); //description /// dialogue_create(text,character,expression,pos,speed) /// @arg text /// @arg character /// @arg...
  2. hugokml

    SOLVED How to present value in currency?

    Please, on Game Maker, I need to present on screen a budget in a currency value (eg. $999,999.00) and score value (eg. 999,999). Please, how can I do it?
  3. DrScoop

    GMS 2.3+ String with a gamepad input image in it?

    Hi there, I noticed in a lot of games, including GameMaker ones, developers use an Image of things like Xbox Controller buttons or Thumbsticks interspersed with a printed string to communicate input instructions. How exactly are they accomplishing this? Are they using a draw_text function for...
  4. J

    Why is my string no longer a string?

    I have this string in a variable that just suddenly stops being a string for no reason. So I have this object with a string stored in a variable called path_name. This object spawns new enemy objects and uses the given path name to set the pre-made path the enemies will follow. This failed...
  5. D

    Windows Reading strings from .csv file - can't create line breaks/newlines

    Hello, I am reading lines of dialogue into my game via importing from a .csv file into a ds_grid. The game has been interpreting my line breaks literally instead of doing a paragraph break. In other words, it is reading '\n' as literal characters instead of as an escape character. When I tried...
  6. R

    [SOLVED]array_2d and writing

    hello guys, I have a problem that I am getting confused and having trouble understanding, and I would like your help. I am studying together with my teacher (video lessons, they are not live just to make this part clear) dialogue system, I am stuck in one part, this part is unique in the video...
  7. Dagoba

    GML Sprite inside of a string?

    Hey, is there a possibility to have a sprite inside of a string message? I am creating a sign that guides the player and in the message it should display like: "Press X to Jump". The X would be replaced with a sprite of X, because the player could for example modify their keyboard settings and...
  8. RizbIT

    storing strings in ini with newlines

    [User] recordlogs=" 13/03/2021 - 565 13/03/2021 - 633 13/03/2021 - 574 13/03/2021 - 700 " You can write a string to ini that has \n new line escape character BUT When you try to read in the value of recordlogs you get a blank string as opposed to all the string
  9. zendraw

    GMS 2 String resourse

    Is there a way to store strings as a resourse in game maker so you can just pull them like you do with sprites? so how you have draw_sprite(spr_player); we culd have draw_text(txt_bio); usually how i do this is i have a script with a switch in it where i store the texts.
  10. Misael644

    SOLVED Any string function that works in a similar way to "string_format"?

    So, suppose I have a string of numbers whose value is "1234". I want only the first two digits, "12". Or another string whose value is 6. I want it to be 06. I thought about using the "string_format" function, but it's not exactly what I want. I want to use to make timers in the hh:mm:ss format...
  11. ChillAssLofi

    Deleting specific letters in a string.

    Hello. I have a question for you guys. I am currently making a game that's sort of like a word find. (You know the jumble of letters, and you try to find words hidden inside?) Well I have 99% of it done, but there's one very big problem with it. Let me explain the basic idea first. There's a...
  12. FoxyOfJungle

    GMS 2.3+ How to decompile a buffer? (It's possible??)

    When it comes to security issues, there are certain things that we need to know how to avoid or know if it is possible. There is a function called buffer_save(), however, is it possible to "decompile" this buffer saved in a text file?, somewhere else without using GMS 2 (the buffer_read()...
  13. samspade

    GMS 2.3+ Resource IDs are Numbers, Not Strings

    GM Version: GMS 2.2.5 and 2.3 Target Platform: All Download: NA Links: YouTube Video A Micro Tutorial for Someone New to Gamemaker and a Reference for the Rest of Us Resources ids are numbers not strings. Knowing this will help you prevent some bugs and allow you to do things like create...
  14. FoufaDjo

    SOLVED how to replace clipboard string special chr

    i want to cope and past only numbs and the chr "." for the ip string but idk a key word to target all special char i only fond string letters and digits that cover specific chr
  15. xDGameStudios

    GMS 2.3+ [DISCUSSION] Concat strings the easy way!

    Given the changes that were made to the GML parser, I would like to know what is your opinion on YYG allowing the use of something similar to what we can see in JS and C#. JS: var a = "foo"; var b = "bar"; var c = "damn"; var text = `Today I want ${a} with a ${b} and it was ${c} great`; C#...
  16. angelwire

    SOLVED Having to append " to an IP address to use in a ds_map [Solved - I was totally wrong]

    EDIT: I'll leave this up as an sad reminder of how dumb I look. I had accidentally swapped "!= undefined" and "== undefined" and so I thought it was returning "undefined" when it was actually returning the player and visa-versa. Everything in this post is wrong Using 2.3 I'm making a...
  17. E

    Remove line breaks from string

    Hello, how would you remove line breaks from a string? So that it goes from this: Hello World. to this: Hello World.
  18. R

    GMS 2.3+ Extension function not properly reading string return value from .dll

    Hi all. I'm having some trouble with a pathfinding extension I'm trying to write. The first real function of the extension that I'm trying to test out is the function to make the grid object for pathfinding, and I figured that I could cast a pointer to the object into a string and pass that back...
  19. K

    String and Ds_Map

    Okay, Basically, what I'm trying to do is the following: I want to create a string that uses a variable in it. The variable is stored inside a Ds_Map When I try to run the game this happens: ___________________________________________...
  20. V

    GML [1.4.999] Preventing # from going next line

    I am trying to prevent hash character from going next line. I have already tried string_pos(ord("#"), message), keyboard_check_pressed(ord("#")), and string_pos(ord("\n"), message), but apparently they do not work. How can I check if # key is pressed? Or is it not possible at all?