Creating Waypoints/scene map


Hi Steph, this could be the one you looking for.

init python:

    test = ramen_scene('test')
   
    test.branch = ['up','down','d1','d2']

    for s in test.scene.keys():
        test.define_map(s,test.branch)
        test.map[s].dict('pos',up=(713,197),down=(557,181),d1=(223,234),d2=(929,265))

    test.map['floor1'].dict('way',up='floor2',down=None,d1='red',d2='blue')
    test.map['floor2'].dict('way',up='floor3',down='floor1',d1='red',d2='blue')
    test.map['floor3'].dict('way',up='floor4',down='floor2',d1='red',d2='blue')
    test.map['floor4'].dict('way',up=None,down='floor3',d1='red',d2='exit')

    test.map['floor4'].set('trans','down',pixellate)
    test.map['floor1'].set('trans','up',fade)

I writting the documentations now. please spare me.


# in you renpy script

label ramen_test:

label test:

    "ramen_test for [config.name] [config.version]"
    "[gui.about]"

    label .themap:
        show screen scene_map(test,'floor2')

        "I wonder which door?"
        
    label .red:
        scene test red
        "you see red room"
        "[ramen.last_label]"
        jump .themap
        
    label .exit:
        jump start
        
label blue:
    scene test blue
    "you see a blue room"
    "[ramen.last_label]"
    jump test

I upload the demo videos at https://youtu.be/h65yY_ueXyE

Get Ramen

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.