Game Maker GML Discovery: EXE Compiling

I Have Figured out how to Make Game Maker be able to make a runnable exe with gml

(Useful if your Making an External Level Editor For a Game)

 

The Script

[code]

global.out = '//{ object export data'
 with (all) {
 trace = true
 if (object_index == obj_control) trace = false // add lines like these to make objects that should not be exported
 if (trace) {
 global.out += chr(13) + chr(10) + 'instance_create(' + string(x) + ', ' + string(y) + ', ' + object_get_name(object_index) + ')'
 }
 }
 global.out += chr(13) + chr(10) + '//}'
 clipboard_set_text(global.out) // or move it somewhere else[/code]

 
You Need to have an Object called

 
obj_control is where you Put the object name that you dont want exported
you Can make more lines of it with the name of all the objects you dont want exported

 
the clipboard_set_text only adds the data to the clipboard Im Not so good when it comes to writing text to files

 
enjoy