Always displaying a side image?

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.
Message
Author
briarbun
Regular
Posts: 49
Joined: Wed Feb 20, 2019 4:23 pm
Projects: Helix Felix
Location: PNW
Contact:

Always displaying a side image?

#1 Post by briarbun »

I have a character side image set up, but I would like to have that image always showing, instead of only showing when speaking. That way when I type

Code: Select all

show addison happy
the side sprite will change to happy without any dialogue, instead of popping up in the middle of the screen as a normal sprite.

Is this possible?

Currently the default seems to be something like this:

Code: Select all

addison "hello I'm on the screen talking, as a side image"
addison happy "now my side image has changed to happy"
bob "now addison's side image is gone" 
show addison confused
addison "but now there are two addisons on the screen! one happy at the side, and one confused in the center!
I want it to work like this

Code: Select all

addison "hello I'm a side image!"
addison happy "now I'm a happy side image"
show addison nervous
bob "sometimes he wants to change emotions but not speak"

User avatar
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Always displaying a side image?

#2 Post by gas »

So practically speaking you want to show and control a side image both when the character is not speaking and when not showing on the screen as a sprite...

There isn't an easy solution for that (as ren'py work on some precise design choice), but give this a try:
viewtopic.php?f=8&t=51430

It's not an optimal solution but work as long as you don't pretend to alternate bob/addison side images.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

User avatar
badanni
Newbie
Posts: 9
Joined: Fri Jan 24, 2020 11:57 am
itch: badanni
Location: Quito, Ecuador
Contact:

Re: Always displaying a side image?

#3 Post by badanni »

in label start add this

Code: Select all

$ narrator.image_tag="addison"
for all character modify image with

Code: Select all

image="adison"
this gets that when someone speaks, the side image of "addison" is always shown.

User avatar
badanni
Newbie
Posts: 9
Joined: Fri Jan 24, 2020 11:57 am
itch: badanni
Location: Quito, Ecuador
Contact:

Re: Always displaying a side image?

#4 Post by badanni »

or this

Code: Select all

 config.side_image_tag ="addison"

Tesspolar
Newbie
Posts: 21
Joined: Fri Mar 20, 2020 11:37 am
Contact:

Re: Always displaying a side image?

#5 Post by Tesspolar »

Hi, sorry to hijacking your post but I didn't want to create new topic on similar issue.

I am trying to add side images but it just doesn't show up.

So I have these but side image just won't show up

image side Kira = "kiraside.png")
define k = Character("Kira", image="kiraside")

Side image won't show up when Kira is talking. What am I doing wrong?

Thanks

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Always displaying a side image?

#6 Post by rayminator »

Tesspolar wrote: Fri Mar 27, 2020 10:30 am Hi, sorry to hijacking your post but I didn't want to create new topic on similar issue.

I am trying to add side images but it just doesn't show up.

So I have these but side image just won't show up

image side Kira = "kiraside.png")
define k = Character("Kira", image="kiraside")

Side image won't show up when Kira is talking. What am I doing wrong?

Thanks
for this you need to put the full location where the side image

like this

Code: Select all

image side Kira = "characters/kiraside.png")
or

Code: Select all

image side Kira = "images/characters/kiraside.png")

Tesspolar
Newbie
Posts: 21
Joined: Fri Mar 20, 2020 11:37 am
Contact:

Re: Always displaying a side image?

#7 Post by Tesspolar »

Tried that too. It just won't show up I know I am missing something but don't know what.

So with image location

Code: Select all

 
image side Kira = "images/kiraside.png"
define k = Character("Kira", image="kiraside")


Images needed to be specific sizes?
Last edited by Tesspolar on Fri Mar 27, 2020 11:08 am, edited 1 time in total.

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Always displaying a side image?

#8 Post by rayminator »

Tesspolar wrote: Fri Mar 27, 2020 10:40 am Tried that too. It just won't show up I know I am missing something but don't know what.

So with image location

Code: Select all

 
image side Kira = "images/kiraside.png")
define k = Character("Kira", image="kiraside")


Images needed to be specific sizes?
take the side from kiraside just name it kira

Code: Select all

image side kira = "images/kiraside.png")

Code: Select all

define k = Character("Kira", image="kira")

Tesspolar
Newbie
Posts: 21
Joined: Fri Mar 20, 2020 11:37 am
Contact:

Re: Always displaying a side image?

#9 Post by Tesspolar »

Same thing. Ggrrrrrr

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Always displaying a side image?

#10 Post by rayminator »

how big are your side images large or small?

you might have to edit this in screens

if it's small just leave it as is if it's large then change small to large

Code: Select all

if not renpy.variant("small"):
here is what I have in my game that I am redoing

Code: Select all

define a = Character("Maejima", who_color="#c8ffc8", image="maejima")
define b = Character("Kira", image="kira")
define c = Character("Tonoya", image="tonoya")
define d = Character("Chie", image="chie")
define e = Character("Murakami", image="murakami")
define f = Character("Kashiwara", image="kashiwara")

Code: Select all

image side maejima = "images/char/maejima.png"
image side kira = "images/char/kira.png"
image side kashiwara = "images/char/kashiwara.png"
image side chie = "images/char/chie.png"
image side tonoya = "images/char/tonoya.png"
image side murakami = "images/char/murakami.png"

Tesspolar
Newbie
Posts: 21
Joined: Fri Mar 20, 2020 11:37 am
Contact:

Re: Always displaying a side image?

#11 Post by Tesspolar »

Image is 80 x 80

I tried small and large in screen. I have no clue why it just won't show up. Tried a fresh start project with 0 changes in scripts still won't show up

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Always displaying a side image?

#12 Post by rayminator »

what do you have under this code

Code: Select all

if not renpy.variant("small"):
with mine i have it has this

you might have to adjust this xalign and yalign

Code: Select all

if not renpy.variant("small"):
        add SideImage() xalign 0.0 yalign 1.0

Tesspolar
Newbie
Posts: 21
Joined: Fri Mar 20, 2020 11:37 am
Contact:

Re: Always displaying a side image?

#13 Post by Tesspolar »

Yeah it is same.

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Always displaying a side image?

#14 Post by rayminator »

okay let do a test

change this line

Code: Select all

add SideImage() xalign 0.0 yalign 1.0
to

this should put the side image dead center of the game

Code: Select all

add SideImage() xalign 0.5 yalign 0.5
if doesn't help then only thing I can think of doing it to open renpy and force recomple

or upload your game to let me see

Tesspolar
Newbie
Posts: 21
Joined: Fri Mar 20, 2020 11:37 am
Contact:

Re: Always displaying a side image?

#15 Post by Tesspolar »

I was just trying that right at the center. Nope won't show up.

I have just opened up a fresh test project basically nothing in it. Still won't show up. I don't know what I am missing. I made the image smaller.. Bigger.. It just won't show up.

As soon as k character speaks it should show up right?

Post Reply

Who is online

Users browsing this forum: No registered users