Drag and Drop Files Into GameMaker Games
A downloadable library
I had a need for file dropping functionality into a GameMaker program window today. If anyone needs something similar, here you go.
If you use this, you should probably disable the file system sandbox in Game Options > Windows, otherwise you won't be able to actually read from or write to the dropped files.
See the demo project for ideas of how to use it.
The documentation can be found here.
Price
As usual, the asset is free as-is. I'll fix simple or game-breaking bugs but more involved support requires payment via either Itch or Patreon. I get the final say in what constitutes "game-breaking," although it's less than 200 lines of code so I doubt there's going to be anything interesting.
(That's the standard disclaimer I add to every project. I seriously doubt there are any bugs in this as long as you don't do anything extraordinarily stupid with it.)
Notes
- Windows only; I may make a Linux version if the need arises; I have zero interest in working with Apple computers
Download
Click download now to get access to the following files:
Development log
- Filter for file extensionsAug 23, 2022
- 64-bit DLL (and a less ancient extension system)Jan 05, 2022
- Updated to 2.3, and generally cleaned up a littleMar 11, 2021
Comments
Log in with itch.io to leave a comment.
Hey can it possibly be updated to threat special characters? It makes gamemaker go boom and unable to filter the replacements.
Literally, for "água" file being loaded in, string_char_at(2) is the second "a", instead of "g", and I just can't even ignore the special one and get "gua", because "gu" are ghosts.
https://discord.com/channels/262834612932182025/685187322311999513/1079310792593...
can u make gms1 version pls
I second that