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

save game

  1. AcroGames

    What Event to put save game action in?

    So im unsure where to place save_game() action since if I put it at the start of the room in Create (first object in the room) when I load the game the room doesnt progress. If I place the save action in Room End, it also doenst progress. Like, nothing after the game-save action plays out. I...
  2. M

    it says that the game_save need a number

    it says that the game_save need a number var interaction = keyboard_check(ord("W")); if (interaction && place_meeting(x, y, p_player)){ global.Save = true; game_save("Save.dat"); instance_create_layer(64, 64, "TextBoxLayer",o_textConfirm); with(o_textConfirm){ saveConfirm =...
  3. T

    How would I go about making a level unlock and save system? (GM8.1 standard)

    Hey guys, So recently I started a project in which I have a mode in which you beat a boss, and then you unlock the next, and when you click the save button, it saves the progress that you've made and when you come back you can tackle the bosses you have unlocked. Defeating a boss sends you back...
  4. Le_Beholder

    Saving/loading? GM[8.0]

    Anyone have some tips on how I could setup a save/loading system? I know it involves several functions to write my desired variables down into ini files.. but as far as implementation goes.. Step events? For loops? Is it something like: If select = true { case "Save": ini_write_file(variable?)...
  5. HATER

    How to save global variables?

    Is there any way to save global variables so that when the player closes the game and opens it again, the game will start on the title screen and global variables will be saved from the last time played? I have tried using ini_write_real and ini_write_string ,but It wont work. Can someone tell...
  6. D

    GML [SOLVED - Workaround] Savegame System has strange side effect on Event Listeners

    Hi, I implemented a Savegame System where I can configure for each object what kind of data I want to store without coding it for everyone... The code for the Saving and Loading is currently implemented like this: (still work in progress but works already in some cases) This system was...
  7. R

    GML how to save and load the position "x,y" the player?

    Hello, in this question, I am working with ini files, so to save, I use: ini_open("sav.ini"); ini_write_real("Posicion","X",obj_player.x); ini_write_real("Posicion","Y",obj_player.y); ini_close(); Now I need to clarify that I use a player object and I place it in each room. So I do not know how...
  8. D

    Making save profile

    Can someone help me i want like different save profile where ai can save different characters and different saves. put tutorial link and thanks ;)
  9. B

    GML Save/Load System on Consoles - JSON vs DS Map System

    Hello, I am working on a project that may appear on consoles (XBox, PS4, and potential Nintendo Switch). I am looking into the various ways of saving/loading game data and came across tutorials using JSON and another tutorial that uses DS Map based save systems. I am wondering if consoles need...
  10. T

    clarification on game_save_id

    Hey all - I'm looking for some clarification on the game_save_id variable. In the Docs it says: The NOTE there is what I'm curious about. What is meant by this exactly? Because then it seems to me that "getting a file path" is exactly what is being done in the example listed on that same...
  11. F

    Legacy GM Loading a game gives an error

    ]Hi I'm having a problem while loading a save I have created. Whenever I try to load the game it gives me this error code yet my hero object is in my save file ___________________________________________...
  12. Vinsane

    GameMaker (SOLVED) Save File INI Help - Saving + Loading Variables Issue

    Hi there everyone, I currently have a working INI save system (that is very basic mind you) that saves what fields I enter into it. at the moment I have saved the players "kills" and "coins" so when I relaunch the game and hit load these two variables will load up fine with the objects assigned...
  13. P

    Question - Code Where are files saved to in GM2?

    Hey all, If I use the GM2 function: file_text_open_write("save.json") Where will the "save.json" file actually be saved to? I'm having a problem with autosaving and I need to manually check that the file is actually being created and written to properly. Thanks for any help! G
  14. bluetrack

    Save game format has changed

    Hi, I am making an android game and every time I create an upgrade for it (even a small change like a wall object in a room) and the player selects continue game (which loads the saved game I get the following error: "Save game format has changed". If player selects "New game" which...
  15. L

    Legacy GM Problem with saving and loading the game

    As the title says, I have a problem with saving and loading my game. Also, the thing is, when I start the game, I use the load game script, but nothing happens, even though there are default values given at the ini_read_real() function. /// scr_save_game var file = "savegame.ini"...
  16. B

    GML [SOLVED] Custom high score not working with ini.... help please :D

    Hello! here's my full code for displaying a custom high score system: Full Code Link Lines 55-61 seem to be the problem. Here is what it's doing when I beat high score: As you can see, it repeats 8th - 10th place. Here's the confusing part... if I comment out the ini_write loop (lines 55-61)...
  17. M

    Save/Load issue

    Hello to everybody.For the past 5 days i had a issue that's been bugging me ever since. I'm making an RPG 8-bit style,implemented save/load options and everytime I save the game it's sending me to the first room and sometimes outside the room on random positions. Can somebody help me ? :(
  18. D

    Saving an RPG - (ini file) or (ds_map) ??

    I'm looking for some opinions on which path I should pursue to create a save game feature for my game. I've just recently started researching this so my knowledge is very limited. The tutorials for using .ini files seems very code extensive and cumbersome. I just went through a...
  19. D

    Saving multiples of the same enemy object.

    Hi, I am quite new to coding and I'm making a game. I have multiple enemy objects in a room wich are all parented to an enemy_lifeform_parent. I want save of each individual object a x, y and hp. How I currently do it with my player is like this: // Create the save data structure var...
  20. B

    Saving to a specific filepath

    I am wondering if there is a way to save a .dat file to a specific file path using the game_save() method. I am able to create a new directory using directory_exists() and directory_create(), but how can I assign the directory to be the default save path for my saves? Thanks!
Top