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.
-
Arioh
- Newbie
- Posts: 1
- Joined: Tue Jun 07, 2016 2:13 am
- Projects: Twilight tavern
-
Contact:
#1
Post
by Arioh » Fri Sep 08, 2017 3:05 pm
Hello, im struck with one problem - cant make dress-up system from this tutorial:
viewtopic.php?f=51&t=14559 , and naming system from this
viewtopic.php?f=51&t=41069 to work with same character.
for example: code from dress-up tutorial with commands for renaming injected in it:
Code: Select all
init:
image char = DynamicDisplayable(draw_char) # using DynamicDisplayable ensures that any changes are visible immedietly
$ character = Character('Koma', color="#c8ffc8", window_left_padding=180, show_side_image=DynamicDisplayable(draw_char_side))
$ character = "character"
label start:
show screen dressup_button
$ dressup_button_show = True
label cont:
show char
character "La, la, la!"
$ character = renpy.input("What's your name?")
jump cont
problem is - when i setting line to define main character's name in an init block, sideimage in dialoge for that character stops working... but they work for any character with predefined, non customizable name...
is there way to make them to work together?
-
ConerNSFW
- Regular
- Posts: 40
- Joined: Sun Oct 23, 2016 5:08 pm
-
Contact:
#2
Post
by ConerNSFW » Fri Sep 08, 2017 3:57 pm
try making the name a variable like:
Code: Select all
$ character = Character('[character]', color="#c8ffc8", window_left_padding=180, show_side_image=DynamicDisplayable(draw_char_side))
Users browsing this forum: Google [Bot], Hojoo