Jiggly splash screens

J. Landman Gay jacque at hyperactivesw.com
Sat Oct 26 11:53:42 EDT 2013


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.  

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


-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list