{"author_name":"shubshub","cat":"LD #22","comments":[],"epoch":1324593840,"likes":2,"metadata":{"p_key":"60057","p_author":"shubshub","p_authorkey":"9346","p_urlkey":"95809","p_title":"Game Maker GML Discovery: EXE Compiling","p_cat":"LD #22","p_event":"LD22","p_time":"1324593840","p_likes":"2","p_comments":"0","p_status":"UPD5","us_key":"9346","us_name":"shubshub","us_username":"shubshub","event_start":"1323993600","event_key":"8","event_name":"LD22"},"text":"<p>I Have Figured out how to Make Game Maker be able to make a runnable exe with gml<\/p>\n <p>(Useful if your Making an External Level Editor For a Game)<\/p>\n <p>&nbsp;<\/p>\n <p>The Script<\/p>\n <p>[code]<\/p>\n <pre>global.out = '\/\/{ object export data'\n with (all) {\n trace = true\n if (object_index == obj_control) trace = false \/\/ add lines like these to make objects that should not be exported\n if (trace) {\n global.out += chr(13) + chr(10) + 'instance_create(' + string(x) + ', ' + string(y) + ', ' + object_get_name(object_index) + ')'\n }\n }\n global.out += chr(13) + chr(10) + '\/\/}'\n clipboard_set_text(global.out) \/\/ or move it somewhere else[\/code]<\/pre>\n <pre><\/pre>\n <pre>You Need to have an Object called<\/pre>\n <pre><\/pre>\n <pre>obj_control is where you Put the object name that you dont want exported<\/pre>\n <pre>you Can make more lines of it with the name of all the objects you dont want exported<\/pre>\n <pre><\/pre>\n <pre>the clipboard_set_text only adds the data to the clipboard Im Not so good when it comes to writing text to files<\/pre>\n <pre><\/pre>\n <pre>enjoy<\/pre>","time":"December 22nd, 2011 5:44 pm","title":"Game Maker GML Discovery: EXE Compiling"}