Creating User-defined Layers

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
Glazed Donuts
Regular
Posts: 121
Joined: Thu Aug 12, 2010 11:47 am
Contact:

Creating User-defined Layers

#1 Post by Glazed Donuts »

How do you create user-defined layers? I was messing around with this, but I couldn't find anywhere on how to declare a user-defined layer with a z-order defined, as well.

I wanted to do something like this:

Code: Select all

    #declare layers for small graphics
    $ config.layers["graphiclayer"]
           zorder = 5
    
    $ config.layers["UIlayer"]
           zorder = 10
What would be the correct syntax to do this?

Post Reply

Who is online

Users browsing this forum: No registered users