Ren'Py Code Question...
Posted: Sun Feb 23, 2014 9:44 pm
I am still fairly new to Ren'Py, and so far I am loving it.
I am a little stuck in the coding; I am trying to let players enter there names. After it finally stopped showing error codes for the user interaction, it keeps saying there is indentation mismatch in line 41. I used spaces, and it's still showing this error.
why? what am I doing wrong?
I am a little stuck in the coding; I am trying to let players enter there names. After it finally stopped showing error codes for the user interaction, it keeps saying there is indentation mismatch in line 41. I used spaces, and it's still showing this error.
why? what am I doing wrong?
Code: Select all
$ 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="Mei Jones"
# And get a nostalgic sigh from Seasons of Sakura fans!
# Now the other characters in the game can greet the player.
p "I am [player_name]." #The error is here.
un "I am Alban Joesphs, Founder of Joesphs Designs Inc. I will be interviewing you."
return