For the life of me, I cannot seem to figure out how to display a character image whenever a character speaks. I know about the show image and hide image variables, but how do I make it so that whenever something is this is happens:
define b = Character("bob")
image bob normal = Image("Bob_normal.png")
b "I like to play video games"
How do I make it so that character b always displays the image "bob_normal" everytime he speaks? Thank you
Character Images
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.
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.
-
- Newbie
- Posts: 5
- Joined: Wed Nov 15, 2017 2:59 pm
- Contact:
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3785
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Character Images
Code: Select all
define b = Character("bob, image="bob")
# using single letters for this is not recommended
image bob normal = "Bob_normal.png"
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
-
- Newbie
- Posts: 5
- Joined: Wed Nov 15, 2017 2:59 pm
- Contact:
Re: Character Images
I have tried doing what you said, but it doesn't seem to be working. The image relating to Bob isn't displaying when I play through the gameImperf3kt wrote: ↑Wed Nov 15, 2017 4:26 pmPersonally, I've never gotten 'bob normal' to work, instead I define one character per image.Code: Select all
define b = Character("bob, image="bob") # using single letters for this is not recommended image bob normal = "Bob_normal.png"
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3785
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Character Images
Then you got the same result I did.
Just remove the word "normal" from 'image bob normal'
Just remove the word "normal" from 'image bob normal'
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
-
- Newbie
- Posts: 5
- Joined: Wed Nov 15, 2017 2:59 pm
- Contact:
Re: Character Images
I have tried that, yet Bob's character image isn't being displayed. Thanks for the help though!
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot]