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.
-
Catboo12
- Newbie
- Posts: 6
- Joined: Tue Oct 18, 2016 12:36 pm
-
Contact:
#1
Post
by Catboo12 » Tue Oct 18, 2016 12:40 pm
So, I've watched tutorials and read other posts but I still can't work this out! I'm trying to put an image of my character on the left side of the text bar but I can't do it, no matter the code I use! The code I have so far for my character is:
Code: Select all
define MC = DynamicCharacter('player_name', window_left_padding=160, show_side_image=Image("Test.png", xalign=0, yalign=1.0), color='#ECCEF5', what_color='#ECCEF5')
when I start the game to test if it works the following message pops up:
While running game code:
File "game/script.rpy", line 56, in script
MC "%(player_name)s."
Exception: Unknown keyword arguments: side_image
I don't understand how to get it to work... Please can someone help?

-
Ocelot
- Eileen-Class Veteran
- Posts: 1883
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
-
Contact:
#2
Post
by Ocelot » Tue Oct 18, 2016 12:55 pm
Note that side images are reworked in latest version of RenPy, so you need to make sure that you are using
latest documentation. (And IIRC DynamicCharacter is deprecated: it does not even shows in latest documentation index)
In your particular case your character can be wtiten as as:
Code: Select all
define MC = Character('player_name', window_left_padding=160, dynamic=True, image='player' , color='#ECCEF5', what_color='#ECCEF5')
image side player = "Test.png" xalign 0.0 yalign 1.0
image side player angry = "Test1.png" xalign 0.0 yalign 1.0
# . . .
MC 'Hi' # Shows Test.png
MC angry 'I said, HI!' # shows Test1.png
< < insert Rick Cook quote here > >
-
Catboo12
- Newbie
- Posts: 6
- Joined: Tue Oct 18, 2016 12:36 pm
-
Contact:
#3
Post
by Catboo12 » Tue Oct 18, 2016 1:09 pm
Thank you! It works now

Users browsing this forum: No registered users