From fcb388b887dfe1024b58237c982ffc7a77d111b2 Mon Sep 17 00:00:00 2001 From: 4ian <1280130+4ian@users.noreply.github.com> Date: Sat, 11 Jul 2026 10:32:57 +0000 Subject: [PATCH] [Auto] [Improve] Documented screenshot desktop-only limitation and automatic .png extension, fixed typo --- automated_updates_data.json | 4 ++++ docs/gdevelop5/all-features/screenshot/index.md | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/automated_updates_data.json b/automated_updates_data.json index 93530ac0247..a9b8ab3d247 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-11", + "summary": "Improved screenshot docs: added desktop-only platform limitation, noted automatic .png extension, and fixed a stray-apostrophe typo" } ] } diff --git a/docs/gdevelop5/all-features/screenshot/index.md b/docs/gdevelop5/all-features/screenshot/index.md index bb4518a4228..0cb3876fdd8 100644 --- a/docs/gdevelop5/all-features/screenshot/index.md +++ b/docs/gdevelop5/all-features/screenshot/index.md @@ -3,10 +3,14 @@ title: Screenshot extension --- # Screenshot extension -This extension lets you save a screenshot of the running game in a specified folder. +This extension lets you save a screenshot of the running game to a file. 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 when the game is running on **Windows, Linux or macOS** (desktop). It has no effect on web games or mobile (Android/iOS), because those platforms don't allow writing files directly to the device. + ### Actions #### Take screenshot @@ -17,10 +21,12 @@ Use this action to save a screenshot of everything which is currently drawn on t **Save path**: The file path where the screenshot should be saved. -The save path needs to be an absolute path on the file system (Like "C:\MyFolder\MyScreenshot.png" on Windows)' +The save path needs to be an absolute path on the file system (like "C:\MyFolder\MyScreenshot.png" on Windows). Relative paths are not supported. +If the path does not end with `.png`, the extension automatically adds it, so the screenshot is always saved as a PNG image. + !!! 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).