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.
config.layers = [ 'master', 'MyUniqueLayer2', 'MyUniqueLayer1', 'transient', 'screens', 'overlay' ]
default Var = "MyUniqueLayer1"
if X:
$ Var = "MyUniqueLayer1"
else:
$ Var = "MyUniqueLayer2"
show MyImage onlayer Var
The above code does not work, says that the layer Var doesn't exist, so the straightforward method doesn't work, but is there some way that I can do this, or am I forced to put if/then chains on each time I show/hide it so that it activates a different "show" or "hide" command with the right layer?
at_list = [MyTransform"] seems to work so far, but what would be the syntax for adding basic transforms to it like zoom .5, pos 150? Do I have to bundle all that into a prepackaged transform to access them?