• 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!

file

  1. B

    Android How to read a json file with gml?

    Hello, the project for now I test it on windows desktop but in the future I will do it for android but detail my subject I am trying to load my json file enemys.json, how would that be? Detail as it would be the... enemys.json { "ENEMYS":[ { "ENE_ID":1...
  2. J

    Android android mouse problem[SOLVED]

    Hey, i have a problem with the mouse click events with android..... I have 1 object and it uses left mouse click event and the right one..... Everything works fine on pc but when i'm trying it on my phone its just doing nothing/bugging..... Normally it should set a variable to 1 if i left...
  3. Posho

    Legacy GM "Save As"

    I'm currently working on a small project where the player can load/save INI/Text files and save PNG screenshots of the game. These are currently saved in the working directory but I'd like to know if there is a way to let the player "Save as". You know, the player clicks "save", then a pop-up...
  4. J

    Legacy GM Weird change? file_text_write_real saving reals in the millions in exponential notation

    In my Pac-like Octropolis, I've always used a simple text file for saving out high scores, using file_text_write_real(). It's always worked well for me, UNTIL.... Something in a recent version of Game Maker has started causing the game to write out reals in the range of millions to the...
  5. W

    File system[solved]

    I took a break from my platformer game to work on something else for a bit but now I'm back at it and can't understand why my saving/loading setup isn't functioning right. Specifically this part : if(new_game_file == true) { //Overwrite...
  6. clee2005

    Text compression ... for web requests

    Hi gang, I was wondering if anyone had any bright ideas for text compression (it's actually a ds_map that has been encoded to string). I'm doing cloud save on our web service and at it's peak the save file can be 100k. Sending this back and forth from iOS and Android devices is not going...
  7. O

    Legacy GM [SOLVED] How can I add files into the finnished packaged application?

    Hello, I have some text files, that contain custom level data for my game. I would like to be able to package these textfiles with the finnished application, so I can open and read them from in-game. How would I do this? Thanks in advance, Oliver
  8. O

    Legacy GM How do I prompt the user to select a file from their computer?

    Hello, So I need to be able to let the player choose a .png from his computer, so I can set it as the room background. How do I do this? Thanks <3
  9. S

    Legacy GM saving json to text file

    can anybody give a good example on how to save text files with json encode? I got a file_load script that I got from http://jasonleeelliott.com ///file_load(file) var file = argument[0]; var theFile = file_text_open_read(file); var theData = ""; while (!file_text_eof(theFile)) { theData +=...
  10. F

    Legacy GM How to parse data from text file?

    Hello I'm lost, trying few methods but no progress, I read manual and threads here, but.... Here sample code. This is saved ds_map and json_encode from this map is like this.: { "0": [ [ 1.000000, 128.000000, 160.000000, "obj_man" ], [ 2.000000, 224.000000, 128.000000, "obj_man" ], [...
  11. A

    Any way to rewrite only changed files?

    So recently I've started saving my projects to Google Drive to keep them a bit safer and so I can access them on my laptop. However, I've noticed that Studio re-saves every single file in the project every time I save. For the sake of time and bandwidth, Is there any way to make it so that only...
  12. GMWolf

    Legacy GM Saving and Loading multiple buffers as one file.

    Im looking for a way to save multiple buffers into a single, large file. I realize GM already has a way to save part of a buffer, or load into part of a buffer (buffer_save_ext and buffer_load_ext). but what i need is to load part of what is on disk, in to a ful buffer, and save a full buffer...
  13. A

    Quick Question Regarding Screenshots/Freezing..

    Does anyone know of a way to take a screenshot and display it without saving it as a file? Or freeze the game using another method than instance_deactivate. (I'm creating a transparent pause menu)
  14. A

    Game won't read from .INI file!

    Hello there programmers, I wanted to save the quests progress from my game in a .INI file, to sort of save the progress so you don't have to start from the beginning if you close the game. Now I created and wrote some data to the .INI file, but when I want to read from it, the game returns 0 to...
  15. Phil Strahl

    Legacy GM Dynamically reading files

    So I have a directory with .png files and corresponding .json files. If I add them to my "included files" everything is peachy and accessing them with working_directory etc. works just fine. However, I would like to load and add them at runtime instead, because I want to be able to change and...
  16. P

    zip_unzip function

    zip_unzip function works fine on PC but not on my Android device. Tried a test and I just get the default read string on android. Does the function lack compatibility on Android? I've added my zip file as an included file before exporting the APK. I am on the latest version of game maker studio...
  17. C

    File sizes

    I was talking with a friend about efficiency and whatnot and the subject of file sizes came up. I then realized that my game isn't exactly the smallest... And the thing is, I still have a lot more to add into my game so it's only gonna get bigger... I wanted to ask, about what are the average...
  18. B

    Legacy GM How do I get the non-sandboxed executable directory?

    I am using game maker to create a utility that will read a file that exists in the same directory as the utility's executable. How can I get that directory? for example: If my executable is /home/brandon/desktop/dialog/runner or C:\dialog\runner.exe I want to get the following directory...
  19. Zodaris

    How to have the game read from a Google spreadsheet file?

    I have an HTML5 game that I recently released. I've decided to also make a desktop version with more features. What I want to do, is set up a Google spreadsheet that has 2 variables. A true/false, and a URL. The true/false will be to tell the HTML5 version of the game if the desktop version is...
  20. C

    Reduce executable size

    The size of my project's gmx directory is 145 mb and includes a lot of obsolete assets that are no longer referenced in the project.gmx file. A Windows executable created from it is 301 mb. So the application is more than twice the size of its constituents. Something doesn't seem quite right...
Top