Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
gdevelop5:all-features:screenshot [2018/12/30 21:26]
zatapov [Screenshot extension]
gdevelop5:all-features:screenshot [2018/12/30 21:43]
4ian
Line 4: Line 4:
 ==== Actions ==== ==== Actions ====
 === Take screenshot === === Take screenshot ===
-Use this action to save a screen shot of everything which is currently drawn on the game window into a //png// file.+Use this action to save a screenshot ​of everything which is currently drawn on the game window into a //png// file.
 == Parameters: == == Parameters: ==
-** Save path**: The file path where the screen shot should be saved.+** 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. Relative paths are not supported.
  
Line 14: Line 15:
 </​note>​ </​note>​
 ===== Example ===== ===== Example =====
-<WRAP center round tip 90%> 
-Save path: 
  
-**FileSystem::​PicturesPath() + FileSystem::​PathDelimiter() + my_screenshot.png”**+ 
 +This path: 
 + 
 +``` 
 +FileSystem::​PicturesPath() + FileSystem::​PathDelimiter() + "my_screenshot.png
 +```
  
 This will save the screen shot to the //​Pictures//​ folder on Windows, LInux and MacOS. ​ This will save the screen shot to the //​Pictures//​ folder on Windows, LInux and MacOS. ​
-</​WRAP>​