code, howto, Ren'Py

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

1_Logo

Working with Ren’Py:

Advanced Ren’Py:

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.


 

Input

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

Key

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

keymap

Screenshot 2018-07-12 06.48.53

 

Mousearea

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

Mousearea

Screenshot 2018-07-12 06.54.39

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s