[Display bugs]Character images flash when moving

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.
Post Reply
Message
Author
User avatar
apoto
Newbie
Posts: 22
Joined: Thu Apr 26, 2018 11:32 am
Contact:

[Display bugs]Character images flash when moving

#1 Post 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.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: [Display bugs]Character images flash when moving

#2 Post by Imperf3kt »

I'm assuming 'move' is an ATL transform?
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

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: [Display bugs]Character images flash when moving

#3 Post by isobellesophia »

Both moving transition sometimes wont get along together, maybe making it more specific.
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
apoto
Newbie
Posts: 22
Joined: Thu Apr 26, 2018 11:32 am
Contact:

Re: [Display bugs]Character images flash when moving

#4 Post 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.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: [Display bugs]Character images flash when moving

#5 Post by Imperf3kt »

You haven't specified any coordinates to move to though?
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

User avatar
apoto
Newbie
Posts: 22
Joined: Thu Apr 26, 2018 11:32 am
Contact:

Re: [Display bugs]Character images flash when moving

#6 Post 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.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: [Display bugs]Character images flash when moving

#7 Post 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
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

User avatar
apoto
Newbie
Posts: 22
Joined: Thu Apr 26, 2018 11:32 am
Contact:

Re: [Display bugs]Character images flash when moving

#8 Post 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.

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: [Display bugs]Character images flash when moving

#9 Post 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.

User avatar
apoto
Newbie
Posts: 22
Joined: Thu Apr 26, 2018 11:32 am
Contact:

Re: [Display bugs]Character images flash when moving

#10 Post 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

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Ocelot