File Dropper for GameMaker
A downloadable extension
Quick links: source code
Versions: GameMaker: Studio, GameMaker Studio 2
Platforms: Windows, Windows (YYC)
This extension allows the user to drag-and-drop files and directories onto the game window!
Featuring a total of 1 (one) function:
file_dropper_init()➜ Sets up the drag and drop operations for the game window. Should be called before you expect user to attempt dragging and dropping objects onto the window (usually on Game Start). Harmless if called more than once. Returns whether successful (I'm not aware of circumstances that could cause this function to fail).
After calling the said function, the game window will indicate to the system that it's happy to accept objects and the user will be able to drag and drop files from Explorer/etc. Doing so will dispatch one Async - System event per file, where
async_load[?"filename"]is an absolute path to the file
Note that in GMS1.4, you'll need an extension to read files outside of game/save directory (e.g. non-sandboxed filesystem)
Made available for free thanks to Follow The Fun (see more)
Click download now to get access to the following files:
Log in with itch.io to leave a comment.
Nice! Very easy to use.