Timing Hide/Show - Lock/Unlock Screen - w Visual Effects.
dunbarx at aol.com
dunbarx at aol.com
Fri Feb 5 13:23:08 EST 2016
Hi.
You want something like:
show/hide the text of fld "yourField" dissolve?
Might be a cool feature for the "feature request" pane in the forum, and see what people say. Or listen here.
Otherwise, I like your idea of a "mask" graphic or image, which can use the above commands, and reset the text at just the right moments...
Craig Newman
-----Original Message-----
From: Sannyasin Brahmanathaswami <brahma at hindu.org>
To: How LiveCode <use-livecode at lists.runrev.com>
Sent: Fri, Feb 5, 2016 1:01 pm
Subject: Timing Hide/Show - Lock/Unlock Screen - w Visual Effects.
This animation business is all new and I’m missing some key knowledge base here.
Can any clarify LC’ underlying algorithm for running something like this?
Goal: to have “narration” text show in a field, smoothly disappear, then a second narration text appear in the field without abruptly just replacing the text.
as “pseudo” code this would appear to be what I want… but in fact it does not work.
It’s as if the dissolve over time is superseded by the subsequent commands
wait 1 second
put the uNarrationText[1] of this card into fld "narrationPanel"
show fld "narrationPanel" with visual effect dissolve very fast
wait 1 second
lock screen
put empty into fld "narrationPanel"
unlock screen with visual effect dissolve slowly
wait 30 ticks
lock screen
put the uNarrationText[2] of this card into fld "narrationPanel"
unlock screen with visual effect dissolve slowly
in particular, narrowing it down to this
show fld "narrationPanel" with visual effect dissolve very fast
wait 1 second
lock screen
put empty into fld "narrationPanel"
unlock screen with visual effect dissolve slowly
# the effect I’m looking for is the first text should appear to dissolve, and the new text appear with dissolve
Obviously I can do the whole field like this:
wait 1 second
put the uNarrationText[1] of this card into fld "narrationPanel"
show fld "narrationPanel" with visual effect dissolve very fast
wait 1 second
hide fld "narrationPanel" with visual effect dissolve very fast
put the uNarrationText[2] of this card into fld "narrationPanel"
show fld "narrationPanel" with visual effect dissolve very fast
but it woudl be cool just to have the text change out… Yes, I could create a mask object with the field inside, but I’m looking for a simpler 1 field only solution
BR
_______________________________________________use-livecode mailing listuse-livecode at lists.runrev.comPlease visit this url to subscribe, unsubscribe and manage your subscription preferences:http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list