Documentation I've found so far...
http://sleepyagents.blogspot.com/2017/0 ... renpy.html
I started from this tutorial, but it only involves show statements, not adding images to screens.
https://www.renpy.org/doc/html/displayi ... html#layer
https://www.renpy.org/doc/html/config.h ... fig.layers
Documentation on layers, but again using show statements rather than screens.
viewtopic.php?t=42459
I found this forum thread, adding a different screen layer on top of the old screen layer, not allowing multiple layers on a single screen... Maybe this can only be done by making a new screen for each layer?
I added this line to the options file:
Code: Select all
config.layers = [ 'zero', 'master', 'transient', 'screens', 'belowmid', 'midlayer', 'abovemid', 'overlay']
Code: Select all
class TestMap:
def __init__(self, map_grid, base_img, top_img, start_x, start_y):
self.map = map_grid
self.base_img = base_img
self.top_img = top_img
self.center_x = start_x
self.center_y = start_y
Code: Select all
screen map_screen(cMap):
on "show":
action Hide("say")
add "#000"
$offset_x = 990 - (90 * cMap.center_x) + 45
$offset_y = 540 - (90 * cMap.center_y) + 45
add cMap.base_img:
pos(offset_x, offset_y)
onlayer belowmid
add cMap.top_img:
pos(offset_x, offset_y)
onlayer abovemid