[renpy] 자동으로 아래로 내려가는 엔딩크레딧

2022. 11. 22. 19:29
label credit:
 
    image cred = Text("{color=#fff}"+credits_s+"{/color}", text_align=0.5)
    image theend = Text("{size=80}{color=#fff}The End{/color}{/size}", text_align=0.5)
    
    $ credits_speed = 30 #scrolling speed in seconds
    scene bg black with dissolve
    show cred at Move((0.5, 4.3), (0.5, 0.0), credits_speed, repeat=False, bounce=False, xanchor="center", yanchor="bottom")
    show theend:
        yanchor 0.5 ypos 0.5
        xanchor 0.5 xpos 0.5
    with dissolve
    $renpy.pause(1.0,hard='True')

    hide theend with dissolve
    $renpy.pause(credits_speed - 3,hard='True') #클릭 안되도록 설정

    show logo with dissolve:
        xalign 0.5
        yalign 0.5
    with Pause(1)
    
    hide logo with dissolve
    stop music fadeout 2.0
    
    pause(3)
    return

init python:
    credits = ('시나리오', ['1', '2' ,'3', '4']), ('SCG', ['1'])
    credits_s = "{size=80}test\n\n"


    for c in credits:
        credits_s += "\n{size=60}" + c[0] + "\n\n"
        credits_s+="{size=40}"+"\n".join(c[1])+"\n\n"

2021.09.01 - [컴퓨터/renpy] - [renpy] 팬게임을 만들어보자! (3- 개발 편)

BELATED ARTICLES

more