Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(5 edits) (+1)

Helper script:


///File_Dropper_Async_System_Event()
/*
To use this extension, simply call this once at launch: 
file_dropper_init();
Then, put the following code in an async -> System event
Object -> Click "Add event"
"Asynchronous" (bottom right)
"System event" (last on the list).
*/
// Check to see what kind of event happened
var eventType = ds_map_find_value(async_load,"event_type");
// If a file was dropped over the window
if eventType == "file_drop"
    {
    // This is the absolute path
    var filePath = ds_map_find_value(async_load,"filename");
    
    // Print it 
    show_debug_message(filePath);
    
    // Will return the full path, e.g. "C:\Users\user\Documents\Test.txt"
    // When multiple files are included, this event will be called
    // once per file. 
    }