When I try this code:
Code: Select all
$ aa = DynamicCharacter("player_name", color="#58D3F7", show_two_window=True)And when I use this code:File "game/script.rpy", line 8: Line is indented, but the preceding image statement statement does not expect a block. Please check this line's indentation.
$ aa = DynamicCharacter("player_name", color="#58D3F7", show_two_window=True)
Code: Select all
define aa = DynamicCharacter("player_name", color="#58D3F7", show_two_window=True)This is what my script looks like so farFile "game/script.rpy", line 44, in script
p "Pleased to meet you, [player name]!"
KeyError: u'player name'
Code: Select all
# the story starts here
label start:
# The phrase in the brackets is the text that the game will display to prompt
# the player to enter the name they've chosen.
$ player_name = renpy.input("What is your name?")
$ player_name = player_name.strip()
# The .strip() instruction removes any extra spaces the player may have typed by accident.
# If the player can't be bothered to choose a name, then we
# choose a suitable one for them:
if player_name == "":
$ player_name="Avis"
# Now the other characters in the game can greet the player.
e "Pleased to meet you, [player_name]!"


