diff --git a/automated_updates_data.json b/automated_updates_data.json index 93530ac0247..447fd08b29a 100644 --- a/automated_updates_data.json +++ b/automated_updates_data.json @@ -104,6 +104,10 @@ { "date": "2026-07-07", "summary": "Improved keyboard docs: added 'Key just pressed' (held vs one-frame) and 'Any key released' conditions, control-remapping note, and a reference list of valid key names" + }, + { + "date": "2026-07-19", + "summary": "Improved screenshot docs: clarified desktop-only support (no web/mobile), automatic .png extension appending, and asynchronous/background saving behavior" } ] } diff --git a/docs/gdevelop5/all-features/screenshot/index.md b/docs/gdevelop5/all-features/screenshot/index.md index bb4518a4228..220494ff487 100644 --- a/docs/gdevelop5/all-features/screenshot/index.md +++ b/docs/gdevelop5/all-features/screenshot/index.md @@ -7,6 +7,10 @@ This extension lets you save a screenshot of the running game in a specified fol Note: As of GDevelop 5.0.0-beta92 the screenshot action is no longer an extension. Just add an action and search for `screenshot` or go to `Other Actions`/`Screenshot`/`Take screenshot`. +!!! warning + + Saving a screenshot to a file only works in games exported for **Windows, Linux and macOS**. It does not work in web games (running in a browser) or in mobile games (Android/iOS), because these platforms don't allow writing files directly to the player's disk. + ### Actions #### Take screenshot @@ -21,6 +25,12 @@ The save path needs to be an absolute path on the file system (Like "C:\MyFolder Relative paths are not supported. +If the path does not already end with `.png`, GDevelop automatically appends the `.png` extension for you. + +!!! note + + The screenshot is written to disk in the background, so the action does not freeze the game. This also means the file may not exist for a brief moment right after the action runs — don't try to read it back in the same frame. + !!! note In order to create a game that runs on all supported platforms you should use the special folders from the file system extension in combination with the path separator. These determine the path to common folders like *Pictures*, *Documents* or *Desktop* automatically. You can read more about it in [this article](/gdevelop5/all-features/filesystem).