documentation indexreference manualfunction index

renpy.take_screenshot

Function: renpy.take_screenshot (size=None):

This function should be called before renpy.save, to take the screenshot that will be used as part of a savegame. This is called automatically when entering the game menu, but it may make sense to call it manually if you force a save.

size -- The size of the screenshot. If None, defaults to (config.thumbnail_width, config.thumbnail_height).

Example

python:
    renpy.take_screenshot()
    renpy.save("forced_save")

documentation indexreference manualfunction index