Jiggly splash screens

Richmond richmondmathewson at gmail.com
Sat Oct 26 13:59:18 CEST 2013


On 10/26/2013 02:52 PM, Pyyhtiä Christer wrote:
> Richard, one possible reason to jiggling is when ever you tune any dimension the location of the object moves. What could help is to put lock screen - unlock screen in the script to make the sizing of everything before it displays the picture once again.
> rgds
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Dear Python,

No obvious difference:

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

try it!

Richmond.



More information about the use-livecode mailing list