opencard and visual effect

Klaus major-k klaus at major-k.de
Wed May 3 16:48:46 EDT 2023


Hi Pauil,

> Am 03.05.2023 um 22:24 schrieb Paul Dupuis via use-livecode <use-livecode at lists.runrev.com>:
> 
> If I have followed this thread:
> 1) Klaus executes a go to <card> with a visual effect using an effect rate of X millisecs
> 2) Klaus need to start a time on how long the user of the app has to answer a question once the card is displayed
> I believe the order is:
> 1) preOpencard handler (if one) is executed
> 2) card is rendered in the window using the visual effect but the openCard handler (if one) is executed starting effectively at the same time as the visual effect based rendering of the card in the window takes place.
> So starting the timer at the time "openCard" starts + the length of the effectRate of the visual effect used in the GO would represent when the user can expect to see the whole card.
> So if the user has 5 seconds to answer the question and the effectRate was set to 500 millisecs then the start time of openCard + 500ms is when to start the counter for a  second reply.
> Disclaimers: Depending upon the specific effect chosen and the placement of the question on the card, the user may be able to read the question a few millisec before the effect is done or even many millisec before the effect is done.

thank you for your explanation, makes a lot of sense!

> I don't think there is any way to have absolutely precise timing.

Yep, I leave this oit and go directly to the card now.


Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
klaus at major-k.de




More information about the use-livecode mailing list