Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Characters should be defined with define statement. Also you may want to use a different variable for the character's name to avoid confusion with the character object. Try something like:
define mc = Character("[mc_name]", ctc="ctc_animation")
label start:
$ mc_name = renpy.input("Your Name", length=8)
$ mc_name = mc_name.strip()
mc "My name is [mc_name]!"
RicharDann wrote: ↑Tue Oct 13, 2020 8:39 am
Characters should be defined with define statement. Also you may want to use a different variable for the character's name to avoid confusion with the character object. Try something like:
define mc = Character("[mc_name]", ctc="ctc_animation")
label start:
$ mc_name = renpy.input("Your Name", length=8)
$ mc_name = mc_name.strip()
mc "My name is [mc_name]!"
Thanks! That worked. Do you have any idea why it didn't work before? Before this I used define statements to define the character, but it still didn't work. From what I can see the code is the exact same one I used earlier... Maybe it just got confused because of the naming?