Jiggly splash screens

Paul Hibbert paulhibbert at mac.com
Sat Oct 26 22:58:26 EDT 2013


Tackling this problem from a different angle seems to help, this works a little smoother (and it works on LC6.5 (dp 2) on Mac OS X 10.8.5 too)…

Set the geometry of the image to scale to all 4 sides of the card and change the image quality to "good" or "best". 

on mouseUp
   put the rect of this stack into tStackRect
     set the vis of btn "DEMONSTRATE" to false
     repeat until the width of this stack <= 4
      add 1 to item 1 of tStackRect
      add 1 to item 2 of tStackRect
      subtract 1 from item 3 of tStackRect
      subtract 1 from item 4 of tStackRect
      lock screen
      set the rect of stack "SPLASH" to tStackRect
      unlock screen
   end repeat
   repeat until the width of this stack >=400
      subtract 1 from item 1 of tStackRect
      subtract 1 from item 2 of tStackRect
      add 1 to item 3 of tStackRect
      add 1 to item 4 of tStackRect
      lock screen
      set the rect of stack "SPLASH" to tStackRect
      unlock screen
   end repeat
   set the vis of btn "DEMONSTRATE" to true
end mouseUp

I know some people don't like using the geometry options, but for this exercise it just shifted some of the work over to the engine and each repeat cycle is only updating the screen with one line. You can get away without lock screen but the image shifts a little off centre at the really small sizes. It certainly looks smoother to me.

Paul


On 2013-10-26, at 12:13 PM, Richmond <richmondmathewson at gmail.com> wrote:

> On 10/26/2013 07:49 PM, Colin Holgate wrote:
>> You should send that stack to Run Rev, it crashes v6.5 dp2 every time. In 6.1.2 it works without crashing.
>> 
>> 
>> 
>>> Here is the same sort of thing using a regular polygon graphic; no WAIT
>>> and still all jiggly.
>>> 
>>> http://forums.runrev.com/viewtopic.php?f=5&t=17689&p=88639#p88639
>>> 
>> _
> 
> Well, "over here" on Linux 6.5. dp2 doesn't crsh it just gives me a merry spinning wheel cursor.
> 
> Then, after I'd popped over to this virtual desktop to write the line above, and then popped back, the
> stack looked like Saddam Hussein's picnic (short of a sandwich - remember stormin' Norman?).
> 
> Whatever; NOT GOOD.
> 
> Having a lot of "fun" right now trying to shoe-horn Macintosh Maverick (OS 10.9) into VMware,
> and then I can have even more fun in that respect.
> 
> Richmond.
> 
> _______________________________________________
> 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





More information about the Use-livecode mailing list