I'd like to make a character gallery.
This is my first try.
The first question bothering me is how to not show the eileen text box, but only the character sheet?
Here is an image:
And that is the code, made up from parts I found on the forum, docu and internet.
Code: Select all
# The script of the game goes in this file.
# Declare characters used by this game. The color argument colorizes the
# name of the character.
define e = Character("Eileen")
define email_1 = "800 years of trade agreements"
# The game starts here.
label start:
# Show a background. This uses a placeholder by default, but you can
# add a file (named either "bg room.png" or "bg room.jpg") to the
# images directory to show it.
scene bg room
# This shows a character sprite. A placeholder is used, but you can
# replace it by adding a file named "eileen happy.png" to the images
# directory.
show eileen happy
# These display lines of dialogue.
e "You've created a new Ren'Py game."
e "Once you add a story, pictures, and music, you can release it to the world!"
label name:
$ povname = renpy.input("What is your name?")
$ povname = povname.strip()
if povname == "":
$ povname = "Jane"
else:
povname "My name is [povname]!"
e " Hello, [povname]! "
jump test
# This ends the game.
return
label test:
e "Last..."
show screen character_sheet
e "... have a character sheet!"
e "..."
scene bg room
show eileen happy
e "It looks nice, right?"
#screen email_display(email):
# style_prefix "email_display"
# frame:
# area (10, 100, 200, 500) #xpos, ypos, width, height
# viewport:
# scrollbars "vertical"
# mousewheel True
# draggable True
# vbox:
# text '[email]'
screen character_sheet():
add "sheet_of_old paper.png" xalign 0.0 yalign 0.0
add "nelly_small.png" xalign 0.75 yalign 0.5
hbox:
xalign 0.10
yalign 0.10
vbox:
xalign 0.10
yalign 0.10
text "{font=CheGuevaraFancy-Regular.ttf}{color=#000033}Name.{/color}{/font}"
null height 20
text "{font=CheGuevaraFancy-Regular.ttf}{color=#000033}Age:??{/color}{/font}"
text "{font=CheGuevaraFancy-Regular.ttf}{color=#000033}Birthday: ??{/color}{/font}"
text "{font=CheGuevaraFancy-Regular.ttf}{color=#000033}Alignment: - {/color}{/font}"
text "{font=CheGuevaraFancy-Regular.ttf}{color=#000033}Personality:{/color}{/font}"
text "{font=CheGuevaraFancy-Regular.ttf}{color=#000033}Likes: ... {/color}{/font}"
text "{font=CheGuevaraFancy-Regular.ttf}{color=#000033}Dislikes: ...{/color}{/font}"
text "{font=CheGuevaraFancy-Regular.ttf}{color=#000033}Skills: ...{/color}{/font}"
text "{font=CheGuevaraFancy-Regular.ttf}{color=#000033}Quirks: ... {/color}{/font}"
text "{font=CheGuevaraFancy-Regular.ttf}{color=#000033}Dreams: ... {/color}{/font}"
text "{font=CheGuevaraFancy-Regular.ttf}{color=#000033}Fears: ... {/color}{/font}"
text "{font=CheGuevaraFancy-Regular.ttf}{color=#000033}Familiy: ... {/color}{/font}"
text "{font=CheGuevaraFancy-Regular.ttf}{color=#000033}Secrets: ... {/color}{/font}"
text "{font=CheGuevaraFancy-Regular.ttf}{color=#000033}Background:{/color}{/font}"
text "{font=CheGuevaraFancy-Regular.ttf}{color=#000033}aaaa.{/color}{/font}"
text "{font=CheGuevaraFancy-Regular.ttf}{color=#000033}bbbb.{/color}{/font}"
text "{font=CheGuevaraFancy-Regular.ttf}{color=#000033}ccc.{/color}{/font}"