Jiggly splash screens
Richmond
richmondmathewson at gmail.com
Sat Oct 26 12:02:45 EDT 2013
On 10/26/2013 06:53 PM, J. Landman Gay wrote:
> A 2-tick wait is probably too long. Try one millisecond and work up from there.
>
> Without a wait, the engine will go as fast as possible and will skip redraws to increase speed. It only takes a very tiny wait to force a redraw.
Well; I commented out the 'wait' lines and the thing sped up
(marginally), but there was still a jiggly effect.
Perhaps the problem is because the stack does not really shrink about
its centre, but shrinks into its top-left-hand corner, and because of
this the image has to keep being moved.
> Richmond <richmondmathewson at gmail.com> wrote:
>> on mouseUp
>> set the vis of btn "DEMONSTRATE" to false
>> put 400 into DIMZ
>> repeat until DIMZ=4
>> put (DIMZ - 2) into DIMZ
>> set the lockscreen to true
>> set the width of stack "SPLASH" to DIMZ
>> set the height of stack "SPLASH" to DIMZ
>> set the width of img "tom" to DIMZ
>> set the height of img "tom" to DIMZ
>> set the left of img "tom" to 0
>> set the top of img "tom" to 0
>> wait 2 ticks
>> set the lockscreen to false
>> end repeat
>> repeat until DIMZ=400
>> put (DIMZ + 2) into DIMZ
>> set the lockscreen to true
>> set the width of stack "SPLASH" to DIMZ
>> set the height of stack "SPLASH" to DIMZ
>> set the width of img "tom" to DIMZ
>> set the height of img "tom" to DIMZ
>> set the left of img "tom" to 0
>> set the top of img "tom" to 0
>> wait 2 ticks
>> set the lockscreen to false
>> end repeat
>> set the vis of btn "DEMONSTRATE" to true
>> end mouseUp
>
More information about the use-livecode
mailing list