Ren'Py Side image blinks

17MOONKEYS

Adult Fairy Tales
Donor
Game Developer
Jan 31, 2023
871
3,254
First, the incorrect side image appears, after half a second the correct one appears. Why is this happening?


 

Winterfire

Forum Fanatic
Respected User
Game Developer
Sep 27, 2018
4,989
7,310
The issue is with your code:
1. You fade it out.
2. You fade it in.
3. You change the picture.

The operations follow this order, so until it's done fading it in, the step to change the picture will not happen.
What I'd do is changing the picture once it is done fading, so while it is invisible to the player, this way when it fades in it will do so with the correct image.
 
  • Thinking Face
Reactions: 17MOONKEYS

17MOONKEYS

Adult Fairy Tales
Donor
Game Developer
Jan 31, 2023
871
3,254
The issue is with your code:
1. You fade it out.
2. You fade it in.
3. You change the picture.

The operations follow this order, so until it's done fading it in, the step to change the picture will not happen.
What I'd do is changing the picture once it is done fading, so while it is invisible to the player, this way when it fades in it will do so with the correct image.
I don`t understand what is the problem.
This is the code:

m "Нет, я не уверен, что это хорошая идея! Я не готов к такому!"

scene aliceroom113b with dissolve
al "Я хочу этого!"

scene aliceroom113c with dissolve
m "Но я не..."


scene aliceroom113b with dissolve
al "Ты любишь меня?"
 

79flavors

Well-Known Member
Respected User
Jun 14, 2018
1,561
2,183
This is the code:
Python:
    scene aliceroom113b with dissolve
    al "Я хочу этого!"

    scene aliceroom113c with dissolve  
    m "Но я не..."

Unfortunately that's not all the code.

Could you also copy-paste the definition and the associated ?

It probably looks something like this:

Python:
define m = Character("[mc_name]", image="smark")
define al = Character("Galaxina", image="salice")

image side smark = "side_mark.png"
image side salice = "side_alice.png"
...

Since you're using blinking portraits, your side images are probably way more complex than that, hopefully using using and maybe even a to randomize the blink patterns.

My initial thought is that yes, there is something odd going on. The scene aliceroom113c with dissolve should remove the previous side image of Alice/Galaxina from the screen before the mc says "Но я не...".

You haven't overridden any of the default transitions or config variables that impact when the window contents are auto-hidden have you? (things like ). Unlikely, I know - but it's one of the things that would fundamentally change how RenPy works by default.

Edit: Another thought... You haven't added a custom that includes the portraits/side images? That wouldn't be removed by the scene statements and therefore could be a possible reason why the portrait is being shown longer than I personally would expect. Again, unlikely, but better to ask than assume.

... and... just in case it matters... which version of RenPy are you using?
 
Last edited:
  • Red Heart
Reactions: 17MOONKEYS

17MOONKEYS

Adult Fairy Tales
Donor
Game Developer
Jan 31, 2023
871
3,254
define m = Character("[mc_name]", image="smark") define al = Character("Galaxina", image="salice") image side smark = "side_mark.png" image side salice = "side_alice.png"
define ma = ""

define m = Character('[ma]', color="#00baff", image="mark")
define al = Character('Galaxina', color="#33a532", image='alice')

define n = Character(None, kind=nvl)

which version of RenPy are you using?
8.1.2
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Respected User
Donor
Jun 10, 2017
10,263
15,073
define m = Character('[ma]', color="#00baff", image="mark")
define al = Character('Galaxina', color="#33a532", image='alice')

define n = Character(None, kind=nvl)
You are still not addressing Winterfire point. How do you define the "mark" and "alice" images ?

Because, despite its many issues, the version 8.1.2 have none with side images.
 

79flavors

Well-Known Member
Respected User
Jun 14, 2018
1,561
2,183
Something you haven't included is impacting your portraits.

I finally got chance to write a test script using RenPy 8.1.3. I've coded it as I normally would, then pretty much copy/pasted the code you've included here on the forums.

It appears to work how I would expect.
So there's something else going on.

Here's my test script (both script and downloadable/playable game).

You don't have permission to view the spoiler content. Log in or register now.

By all means, give it play, have a look at the code and perhaps compare with your own code.
 
  • Like
Reactions: gojira667