Page 1 of 1
[Display bugs]Character images flash when moving
Posted: Thu Oct 24, 2019 12:12 am
by apoto
I recently found out that the character images of my game flash when moving.
Here's a video recording the bug:
https://drive.google.com/file/d/15c6lLz ... p=drivesdk
My code is simple:
Code: Select all
show peter r at offscreenleft
show ianis r at offscreenleft
show kane at offscreenright
show anzox at middle
with move
I consulted other ren'py users and found out that games with relatively small resolution (640*480) doesn't encounter bugs like this, but games with resolution higher than 1280*720 have problems like that.
Also, this bug only appears once in each distribution, so when I tried to repeat this problem on my computer, it doesn't appear many times. But it causes players to complain about the game.
Could someone please tell me how to fix this bug? Many thanks.
Re: [Display bugs]Character images flash when moving
Posted: Thu Oct 24, 2019 12:37 am
by Imperf3kt
I'm assuming 'move' is an ATL transform?
Re: [Display bugs]Character images flash when moving
Posted: Thu Oct 24, 2019 3:41 am
by isobellesophia
Both moving transition sometimes wont get along together, maybe making it more specific.
Re: [Display bugs]Character images flash when moving
Posted: Thu Oct 24, 2019 6:30 am
by apoto
Imperf3kt wrote: ↑Thu Oct 24, 2019 12:37 am
I'm assuming 'move' is an ATL transform?
Yes, the "move" is a default transition built in the ren'py engine, I didn't change its definition.
https://www.renpy.org/doc/html/transiti ... l#var-move
isobellesophia wrote: ↑Thu Oct 24, 2019 3:41 am
Both moving transition sometimes wont get along together, maybe making it more specific.
Sometimes one character moving also have such problem. I once change the code to
Code: Select all
show peter r at offscreenleft with move
show ianis r at offscreenleft with move
show kane at offscreenright with move
show anzox at middle with move
but the problem also happened.
Re: [Display bugs]Character images flash when moving
Posted: Thu Oct 24, 2019 10:05 am
by Imperf3kt
You haven't specified any coordinates to move to though?
Re: [Display bugs]Character images flash when moving
Posted: Thu Oct 24, 2019 11:44 am
by apoto
Imperf3kt wrote: ↑Thu Oct 24, 2019 10:05 am
You haven't specified any coordinates to move to though?
I mostly used the default transforms in the renpy documents:
https://www.renpy.org/doc/html/transfor ... transforms
so the coordinates are specified I think.
Re: [Display bugs]Character images flash when moving
Posted: Thu Oct 24, 2019 7:32 pm
by Imperf3kt
I took a closer look at "move" transform.
https://www.renpy.org/doc/html/transiti ... e#var-move
You need a position before and after, like so.
Code: Select all
show image at right
show image at left with move
Is that right?
If that's the way it's used and it still has issues, I would recommend using a transform instead.
Code: Select all
image rtl:
xpos 100
linear 0.5
xpos 0
image image_A "images/image_A.png"
label start:
show image_A
"text"
show image_A at rtl
Re: [Display bugs]Character images flash when moving
Posted: Fri Oct 25, 2019 5:41 am
by apoto
Imperf3kt wrote: ↑Thu Oct 24, 2019 7:32 pm
I took a closer look at "move" transform.
https://www.renpy.org/doc/html/transiti ... e#var-move
You need a position before and after, like so.
Code: Select all
show image at right
show image at left with move
Is that right?
If that's the way it's used and it still has issues, I would recommend using a transform instead.
Code: Select all
image rtl:
xpos 100
linear 0.5
xpos 0
image image_A "images/image_A.png"
label start:
show image_A
"text"
show image_A at rtl
I coded just like that, positions are marked before and after, that bug still happens.
for example
Code: Select all
show peter at offscreenleft
"speech"
show peter at middle with move
This bug happens randomly and I follows the document to do my coding, so I am really confused.
Re: [Display bugs]Character images flash when moving
Posted: Fri Oct 25, 2019 6:37 am
by Alex
apoto wrote: ↑Fri Oct 25, 2019 5:41 am
... This bug happens randomly and I follows the document to do my coding, so I am really confused.
Check if you have some huge images and/or videos and/or screens with lots of buttons to be shown some lines after your moving sprites. This might be, that Ren'Py is trying to cache some assets while performing moving, so it cases some glitches. For test purposes try to add some lines of meaningless text after lines with moving sprites.
Re: [Display bugs]Character images flash when moving
Posted: Sun Oct 27, 2019 12:48 am
by apoto
Alex wrote: ↑Fri Oct 25, 2019 6:37 am
apoto wrote: ↑Fri Oct 25, 2019 5:41 am
... This bug happens randomly and I follows the document to do my coding, so I am really confused.
Check if you have some huge images and/or videos and/or screens with lots of buttons to be shown some lines after your moving sprites. This might be, that Ren'Py is trying to cache some assets while performing moving, so it cases some glitches. For test purposes try to add some lines of meaningless text after lines with moving sprites.
It also happens when I have nothing but texts in the lines after...... also the biggest image in the game is 1280*720