From 3ab4de0abba099cf84ab6203e5707ce9ea139cb8 Mon Sep 17 00:00:00 2001 From: 4ian <1280130+4ian@users.noreply.github.com> Date: Sat, 25 Jul 2026 10:36:24 +0000 Subject: [PATCH] [Auto] [Improve] Clarify screenshot works only on desktop exports and auto-appends .png extension --- automated_updates_data.json | 4 ++++ docs/gdevelop5/all-features/screenshot/index.md | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/automated_updates_data.json b/automated_updates_data.json index 2fa8e494dbb..4b2679e9beb 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-25", + "summary": "Improved screenshot docs: clarified that Take screenshot works only on desktop exports (not web/mobile) and that the .png extension is auto-appended to the save path" } ] } diff --git a/docs/gdevelop5/all-features/screenshot/index.md b/docs/gdevelop5/all-features/screenshot/index.md index bb4518a4228..384e7a62e5a 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 + + Taking a screenshot is only supported when the game runs as a desktop export (Windows, Linux or macOS), because it needs to write a file to the disk. It has no effect in web games or on mobile (Android/iOS). + ### Actions #### Take screenshot @@ -21,6 +25,8 @@ 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 end with `.png`, this extension automatically appends 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).