ctc pause indicator appears inconsistently using SMAnimation

Bug #496420 reported by Gumaster
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ren'Py
Fix Released
Medium
Tom Rothamel

Bug Description

http://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=6256&p=84035#p84035 Original thread

ctc_pause - If given, a click-to-continue indicator that's shown when the display of text has been paused with the {p} or {w} text tags.

Thing is, it displays during timed pauses too, such as {w=0.5} Whether this is intentional or not I don't know, but to avoid it, I used SMAnimation with a transperant/blank frame displayed at the start for 0.3 seconds, which theoretically should mean any pauses under 0.3 seconds should display nothing (technically, itll display the blank frame, and then progress before it moves onto the actual visible frames). However, this sometimes works and sometimes doesn't. Sometimes it'll work as expected, but sometimes the ctc indicator will appear at a pause regardless of how short the pause was.
Example: during a {w=0.2} pause, the animation will appear for 0.2 seconds, even though it SHOULDN'T, due to the 0.3 second blank frame.
Playing around with the text speed seems to affect this, a slow text speed will cause the indicator to appear at almost every pause, while a fast text speed will mean it works almost perfectly (although it forces the user to read at impossible speeds, so it isn't a solution)
Duration also seems to effect it, as setting the duration of the blank frame to a very high value (I tried 10 seconds) also works at a regular text speed, but it also means that there is a 10 second delay at places it should display normally at too, which defeats the purpose.
Because of all this, I assume SMAnimation starts before its actually displayed, and as a result the 0.3 second blank frame is skipped, as it only displays once and doesn't loop like the rest of the animation.

Revision history for this message
Tom Rothamel (renpytom) wrote :

There has been a problem with SMAnimation getting confused when it is rapidly hidden and shown for several years now. This is the first time someone but me has reported it. ATL fixes this problem, so I'd suggest re-defining your animation in ATL.

Actually, I'm really considering fixing the fundamental problem, making a ctc_timedpause that is separate from ctc_pause.

Changed in renpy:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → renpytom (renpytom)
Tom Rothamel (renpytom)
Changed in renpy:
milestone: none → 6.10.1
Revision history for this message
Tom Rothamel (renpytom) wrote :

I've added ctc_timedpause to Character in 6.10.1b.

Tom Rothamel (renpytom)
Changed in renpy:
status: Confirmed → Fix Committed
Tom Rothamel (renpytom)
Changed in renpy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.