| title | Screenshot extension |
|---|
This extension lets you save a screenshot of the running game to a file.
!!! warning
Saving screenshots to the file system only works on **desktop** (Windows, macOS, Linux) builds. It is not available on web/browser or mobile exports. On those platforms, use a different approach if you need to capture game images.
Use this action to save a screenshot of everything which is currently drawn on the game window into a png file.
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)'
Relative paths are not supported.
!!! 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).
This path:
FileSystem::PicturesPath() + FileSystem::PathDelimiter() + "my_screenshot.png"
This will save the screenshot to the Pictures folder on Windows, Linux and MacOS.
All actions, conditions and expressions are listed in the screenshot extension reference page.