Name above dialogue box AND letting player choose name.
Posted: Mon Oct 21, 2013 12:57 am
I have been learning Ren'Py, and I'm trying to figure this out.
I know how to make character's names show above their dialogue box...
...and I know how to let the player choose their own name...
...but when I try putting them together...
label start:
...it gives me an error, stating that "player_name is not defined." I've tried a lot of variations on what I've typed above, and can't find a way to work around it. These are two features that I'd like in my first game, so does anyone know how to work around this?
Many thanks in advance,
- Jengo
I know how to make character's names show above their dialogue box...
Code: Select all
init:
$ q = Character("???", show_two_window=True)
Code: Select all
$ player_name = renpy.input("What's my name?")
$ Player_name + player_name.strip ( )
label start:
Code: Select all
$ player_name = renpy.input("What's my name?")
$ Player_name + player_name.strip ( )
if player_name == " ":
$ player_name="Jeff"
init:
$ m = Character(player_name, show_two_window=True)
Many thanks in advance,
- Jengo