Daniel Mallett
Member
I have a button and some code that will simply close the app. This works fine by itself. Then I add the following code. At this point the game still runs but as soon as you click on the quit button Gamemaker crashes and says it's become unstable etc.
My problem is 1) Regardless of my code it should never crash in this way. 2) The button code is a completely seperate section of the program and has nothing to do with this so I am confused.
map_data = ds_map_create(); // Generates DS Map for map data
collide_map_data = ds_grid_create(obj_grid.hard_x_limit, obj_grid.hard_y_limit); // Creates tilemap for collision tiles
danger_map_data = ds_grid_create(obj_grid.hard_x_limit, obj_grid.hard_y_limit); // Creates tilemap for danger tiles
decor_map_data = ds_grid_create(obj_grid.hard_x_limit, obj_grid.hard_y_limit); // Creates tilemap for decor tiles
json_encode(collide_map_data);
ds_map_add_map(map_data, "collide", collide_map_data); // Adds collide grid data to dsmap
ds_map_add_map(map_data, "danger", danger_map_data); // Adds danger grid data to dsmap
ds_map_add_map(map_data, "decor", decor_map_data); // Adds decor grid data to dsmap
Any help would be greatly appreciated.
My problem is 1) Regardless of my code it should never crash in this way. 2) The button code is a completely seperate section of the program and has nothing to do with this so I am confused.
map_data = ds_map_create(); // Generates DS Map for map data
collide_map_data = ds_grid_create(obj_grid.hard_x_limit, obj_grid.hard_y_limit); // Creates tilemap for collision tiles
danger_map_data = ds_grid_create(obj_grid.hard_x_limit, obj_grid.hard_y_limit); // Creates tilemap for danger tiles
decor_map_data = ds_grid_create(obj_grid.hard_x_limit, obj_grid.hard_y_limit); // Creates tilemap for decor tiles
json_encode(collide_map_data);
ds_map_add_map(map_data, "collide", collide_map_data); // Adds collide grid data to dsmap
ds_map_add_map(map_data, "danger", danger_map_data); // Adds danger grid data to dsmap
ds_map_add_map(map_data, "decor", decor_map_data); // Adds decor grid data to dsmap
Any help would be greatly appreciated.