• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

strings

  1. Fixer90

    String Zeros to O's? (SOLVED)

    How would I go about making an automatic string system that converts 0's into capital O's in any string?
  2. L

    Legacy GM How to Convert Bytes to String? viceversa?

    Hello, I wanted to know how i could take a string, for example "Hello" and convert it to bytes "33749023" ? I saw this one example posted by someone on reddit seed = 0; s = "my string seed"; for(var i=0; i<string_byte_length(s); i++) { random_set_seed(seed); seed =...
  3. Neptune

    Asset - Project Powerful Dialogue Engine (Video Included)

    String Bean is an original, powerful, flexible and easy to use Text Engine coded entirely in GML. Marketplace for GM 2: https://marketplace.yoyogames.com/assets/4956/string-bean Marketplace for GM:S: https://marketplace.yoyogames.com/assets/4974/string-bean-v2 The core of String Bean consists of...
  4. K

    LoadString error when running compiled .exe

    I recently used GameMaker:Studio for a school project, an interactive map of sorts that is supposed to show text when colliding with an object. Both in the IDE and the .exe, the program worked just fine. However, on my school PC, when trying to run the .exe, an error pops up saying "LoadString()...
  5. W

    Can someone detail this please?

    I started looking at text box tutorials to see if I could get the hang of making one and I followed this tutorial on youtube. The code works of course but I don't really understand parts of it. This is the whole draw text box object so anyone familiar with this setup will know it : Create...
  6. A

    Storing a lot of strings

    Hi! I've got a question about handling a lot of strings in GMS(2). I'm thinking about developing a game that needs some kind of database which can hold a couple of thousand strings. What's the best way to do this? Because I really don't want to hardcode it. It's also supposed to be a mobile...
  7. R

    Dialogue Sound Effects

    I've got a text engine set up similar to that of Shaun's, and I'm having trouble establishing a sound effect that plays whenever a new letter is shown. Every time I try to incorporate sound to text, the sound keeps playing every step and I don't know how to fix it. Does anyone have a simple...
  8. W

    Legacy GM Question about strings behind the scenes

    what are the technical reasons why, when evaluating strings in a conditional statement, that direct strings evaluate to true while variables containing strings evaluate to false? string examples var temp_var = "w"; //the string constant if ("w") will result in true //variable...
  9. W

    drawing with 2D arrays[solved]

    I keep getting an out of range error when I try to do this draw_text(view_xview, view_yview + 32 * loop, "WRATH Deck " +string(loop) + " : " +string(global.player1_wrath_symbol_set[loop,1]) ) How do I adjust string_width and height for a 2D array?
  10. Ches Rowe

    Get value of a variable from a string?

    For instance the string "mouse_x". Is there anyway in studio to get the value of the built-in variable mouse_x from that? From Google and scouring the manual I haven't found a way.
  11. C

    Number format like in most programming languages

    So today I've worked on a system in my game with date and time. And it went all good, until I've realized there's no "Number_Format" function like in some other programming languages that will prefix the number with zeros. I've designed this function to work like a similar function in C...
  12. K

    Colour Code from JSON/INI

    GM Version: 1.4.1757 Target Platform: ALL Download: N/A Links: N/A Summary: Getting a colour code from a single stored value Tutorial: So here's a perfectly painful solution to the perfectly normal desire to get a colour code from saved text like a JSON file. Unfortunately GM:S doesn't let you...
  13. D

    string limits. whats the max size?

    im currently working with realy long strings, so long that the show_message() function will nolonger display them. whatr the string limits and issues when: posting strings to html like a php script? saving strings to a text file? and whats the limit on the show_message function anyways? what...
  14. S

    python style lists?

    can the yoyo game developers for gamemaker implement python style lists? for example something like var data = [ 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26...
  15. P

    UTF-8

    I am using spritesheet-based fonts, which means that I need to convert strings into numbers to tell my game what image index to render when rendering some text. I'm trying to add support for the possibility of translating my project and apparently GM does not give me an obvious function to...
Top