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.
hima wrote:Also, maybe there should be an easy way for pygame to gain access of renpy in game variables. I don't know if renpy have an object that contain all the variables though? If so I can just passed it to the pygame and then return it, right?
There is such an object, it is called renpy.store. On how to pass it to/from pygame, however, I have no idea .[/quote]
All the global names in your .rpys are exported as members of renpy.store unless they're defined in a python hide block. F'rinstance, you might have something like:
You can just import renpy.store from python/pygame code. You do have to be a bit careful, though... things like lists and dicts created in python (.py) code won't participate in rollback.
Supporting creators since 2004 (When was the last time you backed up your game?)