string

  1. S

    [SOLVED] Store entire text file contents in string (GM 8.1)

    I wrote a script for my Execute Statement extension which allows me to read the entire contents of a VBScript text file. It works in GMStuido 1.4 and 2. But for whatever reason I can't get it working in GM 8.1. It's obvious legacy GM can do this too, but needs to be done slightly different in...
  2. S

    Dialogue sound

    How to attach sound with text like in 0:10 in this video? I'm using string_copy(string_xyz, 1, i ) and incrementing i+=0.4;
  3. M

    Legacy GM Password System Not Working

    I am trying to make a password system for unlocking a character, but it isn't working. In the Button's Create Event: password = ""; In the Button's Left Pressed Event: password = get_string_async("Enter a Password",""); if password != ""{ if password = "Zoroark"{ if...
  4. N

    Showing message string and variables

    I thought this code would have worked but it didn't, can someone please help me with the right way to do it. show_message("Level Status: "+room_caption+"#Coins Remaining: " +instance_number(Coin)+"#Fuel" + health);
  5. R

    GameMaker Display text?

    I have a new problem. The text for a certain variable won't show up on my screen. I have the text set to show up at my character sprite's origin, but it does not appear. The room background is blue by the way. step event: var hinput_ = keyboard_check(vk_right) - keyboard_check(vk_left); var...
  6. A

    GameMaker combining strings into object name?

    Hi... Is there any way to combine names into one? Like say... var thing = 2 How do I make the object name cited be garden_door_2 named that in a statement just because thing = 2 ? Like... ("obj_garden_door_" + thing) make it's name Trying to make a bunch of repetitive code more efficient. Make...
  7. A

    GML Display a lot of different strings using only one obj

    Hello! I'm making a little survival/adventure game and I think I will need to display a lot of different phrases... they will be displayed when the player TRIGGERS a certain position or moment. But I dont want to create a lot of objects for evey string I need to display. What is easiest and...
  8. F

    Legacy GM Can you unstring()?

    Is it possible to unstring a string variable? I am making a list of 3D array variables. For example: ///array list MaxStuff[room_Russia1]=4 //number of files to load //type of asset File[room_Russia1,-1,1]="bg" File[room_Russia1,-1,2]="bg" File[room_Russia1,-1,3]="bg"...
  9. X

    GML Can't find string value...

    Again... but this time I'm 100% sure it's supposed to retrieve exactly what I tell it to retrieve. Getting this error: And essentially here, I'm supposed to have the code retrieve a string value. This string value is stored upon a client joining the server, for each client, it's even generated...
  10. Bee

    GameMaker SOLVED: Convert string containing variable name

    Hello all, I've started learning about creating a json file and decoding the contents. I have a column that contains a variable name, eg. "obj_player.expr". How do I convert the string from the file to the actual variable? Asset_get_index doesn't seem to work. Thanks!
  11. X

    GML [Solved] A script doesn't recognise a sent string as a string

    Essentially, you type in a string of characters in text boxes. There are two variables being used, both of which are, at the beginning, declared as strings. At the end of it all, only one of them gets sent off to a script, but even then, both are strings, always were, always will be. Yet, for...
  12. Zek

    Asset - Scripts ZCrypt - Encryption / Decryption

    Game Maker: Marketplace Itch.io ZCrypt is an encryption/decryption library for Game Maker: Studio 2 / 1.4. The scripts are documented and easy to use! It uses a custom encryption algorithm that I made. ZCrypt can encrypt/decrypt: Strings Text Files Data Structures Buffers ZCrypt contains...
  13. 2

    Legacy GM Using Txt file: Write to Buffer, Read String from Line, Send to Var to Display Character Dialog

    How do I put a txt file into a buffer then read specific lines from it? (eg. like how file_text_open_read() and file_text_readln() do without a buffer) I need to read strings with both numbers, and letters then feed it to a variable for display. Also I want to be able to add lines together in...
  14. X

    GML [Solved] Buffer error upon client disconnecting

    I've come to understand networking a bit better, thanks to one particularly helpful user (Tsa05). Since, I'm not sure whether the previous topic concerning networking would still be relevant, I thought I'd create this to tackle this specific issue specifically. Call me impatient, but I'd rather...
  15. Dragon47

    Asset - Extension Text Inputs - GM Studio 2

    Demo: https://1drv.ms/u/s!AppH38QcoEBfiKVFbF-SFrlkQCoQbQ Poor input boxes make your game look and feel unprofessional, and can ruin the important first impression of a player. But they're a pain to program properly. With this text input extension you can avoid dozens of hours of UI programming...
  16. M

    GML Creating Object Based on String

    I am trying to make it so the game makes objects based on the string. I want to have the object load like: obj_(string) where I have obj_00, obj_01, etc. I am using Game Maker Studio 1.4
  17. X

    GML Weird typing mechanism glitches

    Two problems; if I have this code, I will be able to: * Type by pressing keys * Delete by pressing backspace * Delete by holding down backspace ///Typing code //Checks whether this text box is selected if self.selected == true { //Keys held down if keyboard_check(keys_allowed) &&...
  18. G

    Design Best Way Of Storing Lots Of Strings?

    Howdy All! So, I have a quick design question regarding the storage of lots of strings for my game. And I'm talking like... 60K words-worth of strings that pop up in separate pages. Now, I've dabbled in storing them in files, but loading and processing them is kind of a pain. So, ignorant as...
  19. 2

    GML Possible? txt file: Read Part of Line & Copy, Later Read Other Half of Line & Copy

    When reading from a txt file is it possible to read only a certain number of characters from a line copy that part only then later (on a different frame) start reading from that line at the place you stopped and copy that part only. This would be to prevent slow down if a line was excessively...
  20. 2

    GML Get Built in GM Color Name from String and Translate to Use in draw_set_color

    I'm working on textbox that allows for different colored text in one message. I draw each letter one by one and repeatedly loop each frame. I want to be able to change part of a string's color by writing something like /c_red/ in the text and checking for /c and then getting the rest of the...
Top