Little Help with Renpay

BillyGames

Member
Game Developer
Apr 16, 2020
100
213
Hello Friends,
I want to do an end screen where it's basically 4 pictures animated, the bottom half of each one is the same and the top half will change, and at the bottom left there will be a button.
I am kinda noob and I don't know anything about image mapping or screens etc.
I figured out how I can make it appear at the end and how to animate the 4 pictures but I don't know if it's possible to add the button with this code.

scene 1 with dissolve:
"1" with dissolve
pause 1.0
"2" with dissolve
pause 1.0
"3" with dissolve
pause 1.0
"4" with dissolve
pause 1.0
repeat

Any help will be appreciated
Thank you
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,964
16,210
I figured out how I can make it appear at the end and how to animate the 4 pictures but I don't know if it's possible to add the button with this code.
Python:
# The end screen
screen endScreen():
    # The player can only click on the interactive part of this screen.
    modal True
    # The button
    textbutton "click here":
        # positioned in the bottom left
        xalign 0.1
        yalign 0.9
        # When clicked, hide this screen. 
        # Replace with whatever action you effectively want to perform
        action Hide( "endScreen")

# The last label
label theEnd:
    # Display the screen on the... well, screen.
    show screen endScreen
    # Then show your scene (this is NOT a screen)
    scene 1 with dissolve:
       "1" with dissolve
       pause 1.0
       "2" with dissolve
       pause 1.0
       "3" with dissolve
       pause 1.0
       "4" with dissolve
       pause 1.0
       repeat
 
  • Like
Reactions: BillyGames

BillyGames

Member
Game Developer
Apr 16, 2020
100
213
Python:
# The end screen
screen endScreen():
    # The player can only click on the interactive part of this screen.
    modal True
    # The button
    textbutton "click here":
        # positioned in the bottom left
        xalign 0.1
        yalign 0.9
        # When clicked, hide this screen.
        # Replace with whatever action you effectively want to perform
        action Hide( "endScreen")

# The last label
label theEnd:
    # Display the screen on the... well, screen.
    show screen endScreen
    # Then show your scene (this is NOT a screen)
    scene 1 with dissolve:
       "1" with dissolve
       pause 1.0
       "2" with dissolve
       pause 1.0
       "3" with dissolve
       pause 1.0
       "4" with dissolve
       pause 1.0
       repeat
I want an image button but I think I know how to do it
I think I understood everything thank you very much
I will try it and get back to you