Phil,

Try this:

lock screen for visual effect in rect (the rect of image "people")
--
--draw the new set of people into the same rect as the old ones, while the 
screen is locked
--
unlock screen with visual effect "push down"


Hope that helps!

-Dan





On May 10, 2012, at 2:03 AM, use-livecode-requ...@lists.runrev.com wrote:

> Hi folks,
> My big LiveCode project is due for an update. I haven't touched it since 
> LiveCode 4.6.4, and now I'm using 5.0.2 and things aren't working as they 
> did. Its the change to the visual effect mechanism that's causing me grief. I 
> have a set of images of people in the top half of the window, and I want to 
> replace that set of people with a different one. In 4.6.4 I could just
> 
> 
> set lockscreen to true
> --
> --draw the new set of people into the same rect as the old ones, while the 
> screen is locked
> --
> show object with push down --the object occupies the same rect as the set of 
> people
> 
> 
> That had the desired effect - the new set of people slid down the screen, 
> appearing to push the original set off.
> 
> (here's a small movie showing the effect in 4.6.4:  
> http://www.csc.liv.ac.uk/~phil/LCVFXDemo.mov  )
> 
> In 5.0.2, using the same code, the new set just replaces the old (as though 
> I'd just locked, then unlocked the screen without a visual effect). I tried 
> using:
> 
> 
> lock screen for visual effect
> --
> --draw the new set of people into the same rect as the old ones, while the 
> screen is locked
> --
> show object with push down --the object occupies the same rect as the set of 
> people
> 
> 
> But it does exactly the same thing. I've also tried unlocking the screen just 
> before the "show object" call, but of course you see a brief flash of the new 
> set where the old ones were, then a different image of the new set slides 
> down over it like it used to do in 4.6.4.
> 
> Anyone got any idea how to make this work? Is there a way to mix "lock 
> screen" with "show" that works correctly? I've got this sort of animation all 
> over in this app, and this change to the way lockscreen works completely 
> messes all that up.

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to