How do screens work?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Husky
Newbie
Posts: 22
Joined: Fri May 01, 2015 12:32 pm
Contact:

How do screens work?

#1 Post by Husky »

Hello there. I'd like to create 2 things:

1. Something like inventory, with clickable elements. And after click they're supposed to show it's description.

2. Fairy-helper. Somewhere on the screen there should be a button, which summons a fairy helper, who helps the player, providing him with some useful informations. That fairy should have some data about the player... Like... Time spent in game? Gathered pieces of something? So it should be a little interactive.

I read somewhere, I should call a screen, but I really don't get it. I'm after basics, so I know how to create a simple, multi-branching story. And I made a simple imagemap with choices, where a player should go. But I don't know anything more complex about screens. English isn't my native tongue, so it makes some tutorials about implementing python scripts hard to understand. I just want to make my game interactive, dynamic.

User avatar
Alera
Miko-Class Veteran
Posts: 651
Joined: Sun Mar 21, 2010 3:20 am
Completed: Tortichki // Zayay // Hero's Spirit
Deviantart: psyalera
itch: psyalera
Location: UK
Contact:

Re: How do screens work?

#2 Post by Alera »

Hello!

Have you tried looking in the Cookbook section of the forums? There are some really useful things there, specifically about inventories!

Like these for example:
http://lemmasoft.renai.us/forums/viewto ... 51&t=23071

http://lemmasoft.renai.us/forums/viewto ... 51&t=25393

http://lemmasoft.renai.us/forums/viewto ... 51&t=25579

These should help you get a start working with screens.
The documentations has a pretty in depth explanation of screens as well: http://www.renpy.org/doc/html/screens.html

These aren't instant solutions of course, but I hope it helps!
Image
Games:
❤️ Zayay [Otome?][BxPlayer][NaNo 2013]
❤️ Tortichki [Drag&Drop mini game]

Other games I've worked on:
My Heart's Flame Emissary of Starlight Freedom From Silence Sickness
And many more unannounced/secret projects. (. .)

Post Reply

Who is online

Users browsing this forum: Bmac60506