[Made for GameMaker Studio 2]
This extension is for Windows and macOS.
Allows you to drag and drop files and folders to your game window.
Returns the full path to every file dropped separated by a new line.
The DLL's full source code included.
Very big thanks to Josh Ventura, for writing the widen() and shorten() scripts, enabling UTF-8 support on Windows.
[New Platform] Added support for macOS.
[All Platforms] Removed functions file_dnd_add_files() and file_dnd_remove_files(). Use a data structure list instead to achieve the same thing.
Version 0.1.0. Published May 7, 2019
You can only review assets you've bought.
If I had a chance, I'd give it 6 stars; definitely!
Hey Mert S!
Thank you for your review and kind words!
A missing cross-platform component that any game maker will be happy to have in their toolbox! I've been waiting for something like this for a while. Works with any type and any number of files dragged to the application window and reliably returns strings for your use. The code is well commented and the example is easy to follow. Perfect for having the player drag their own music to listen to in game, or a multitude of other uses such as non-sandboxed ease of access in developing software tools. I've battle tested it against 4000 files at once and it still works.
Hi Dylan B!
Thank you for your extensive review! I'm so glad it gets the job done for you.