Code: Select all
show Player Happy
#P is for Player
P "I am happy."
show NPC sad
NPC "I am sad."
show Player Concerned
P "Why are you sad?"
Code: Select all
show Player Happy
#P is for Player
P "I am happy."
show NPC sad
NPC "I am sad."
show Player Concerned
P "Why are you sad?"
Code: Select all
define p = Character("Player", image="player")
Code: Select all
p happy "I am happy."
I really hate to come back like this, but it's not working. This my actual code, with the non-important stuff excluded for simplicity:Draziya wrote: ↑Tue Feb 20, 2018 1:06 am There is! It's explained here: https://www.renpy.org/doc/html/dialogue ... attributes
Basically you define the character tag when you define the character, and once you've done that you can show images tagged with that character next to your dialogue.
So with your example, if you defined Player with:You could then do this:Code: Select all
define p = Character("Player", image="player")
Code: Select all
p happy "I am happy."
Code: Select all
image bg computer lab = im.Scale("bg computer lab.png", 1280, 720)
image Bd Sprite = "Brad Sprite.png"
define Bd = Character('Brad', color="#8A8A8A", image="Bd Sprite")
label start:
scene bg computer lab
Bd Sprite "test"
I threw this in after the scene of the code I wrote earlier:
Code: Select all
show Bd Sprite
Bd "hi"
hide Bd Sprite
show P Sprite
P "also hi"
hide P Sprite
Bd Sprite "test"
Code: Select all
show Bd Sprite
Bd "hi"
hide Bd Sprite
show P Sprite
P "also hi"
hide P Sprite
show Bd Sprite
Bd Sprite "test"
Code: Select all
define Bd = Character('Brad', color="#8A8A8A", image="Bd Sprite")
Code: Select all
define Bd = Character('Brad', color="#8A8A8A", image="Bd")
Code: Select all
label start:
scene bg computer lab
show Bd Sprite
Bd "test"
Bd Sprite Happy "testtest!"
Users browsing this forum: Google [Bot]