Links: documentation · source code

This extension lets you do a handful of things on HTML5:

  • Paste events
  • Drag 'n drop events
  • File picker dialogs
  • File saving dialogs

For handling images, best used with Allow Data URI.

Note: For iOS, file picker dialog should be invoked from a user interaction (read: clickable_ or this kind of trick)

Have fun!

StatusReleased
CategoryAssets
Rating
Rated 5.0 out of 5 stars
(1)
AuthorYellowAfterlife
Made withGameMaker: Studio
TagsGameMaker

Download

Download NowName your own price

Click download now to get access to the following files:

browser_file_tools-for-GMS1.gmez 76 kB
Version 1.1a
browser_file_tools-for-GMS2.yymp 14 kB
Version 1.1a
browser_file_tools-for-GMS2.3+.yymps 58 kB
Version 1.1a
browser_file_tools-demo-for-GMS2.3+.yyz 105 kB
Version 1.1a
browser_paste.gmez 1 kB
browser_paste.gmz 25 kB
browser_paste_23.yyz 1 MB
browser_paste_23.yymps 3 kB

Development log

Comments

Log in with itch.io to leave a comment.

Is there a way to copy an image TO the player's clipboard, from HTML5?

It is something that can be implemented by scrapping parts of my other extension (Screenshot Save Dialog) in a few hours / $60 or so, but the related API (ClipboardItem) is only implemented in desktop Chromium, making it something that you can’t actively rely upon as of yet.

Got one of these for normal desktop export or only possible on html5?

(+1)

There are already extensions for that (drag and drop, various dialogs). There’s not an up-to-date extension for pasting images from clipboard, but that’s something that has more caveats than one would expect.

danks

It's not working for me, I'm using Mac and tested in Safari, Firefox and Chrome.

(+1)

Have you clicked the game embed to give it focus first?

Just tried in Chrome on MacOs Mojave.. gave focus to frame.. no go.. 

(+3)

Try now, should be fixed (had to explicitly make GM not consume the Cmd+V keyboard shortcut)

(+1)

works for me now.