Advanced Ren’Py: Part 7: Input, Key, and Mousearea


Working with Ren’Py:

Advanced Ren’Py:

Customizing Ren’Py:

Ren’Py + Python:

Ren’Py is a engine for creating visual novels. It comes with a suite of tools for taking code and transforming it into programs that can be run on Windows, Mac, Linux, and even, with a little more work, mobile platforms like Android and iOS.

Beyond the showing of text and images, Ren’Py can also be extended through introducing new user interface elements, changing its defaults images, and combining Python with its own code to create even more interactive projects.



An input user interface element allows for text input.

Screenshot 2018-07-12 06.38.20

Screenshot 2018-07-12 06.40.38

When used with the call keyword, the screen will set the _return variable with the value used in the input.

Screenshot 2018-07-12 06.38.27

Screenshot 2018-07-12 06.40.51


The key keyword is used to set a keyboard input and its associated action.


Screenshot 2018-07-12 06.48.53



mousearea defines a section of the screen and the actions to take place when the cursor interacts with it.


Screenshot 2018-07-12 06.54.39