Being silly with penguins

J. Landman Gay jacque at hyperactivesw.com
Fri Apr 22 23:46:28 EDT 2016


"Without waiting" applies only to the "move" command. I don't have your 
original handler, but Colin's below doesn't use "move" so it wouldn't 
apply here. Normally during a move the handler pauses until the move 
completes. If you add "without waiting" the rest of the handler runs 
immediately while the move continues independently. If your original 
handler uses "move" then adding "without waiting" might help.

I wonder if Colin's animation would work acceptably if the "wait 1" was 
changed to "wait 1 millisecond" though.

On 4/22/2016 2:33 PM, RM wrote:
> At this point it would be marvellous if somebody could chime in with a
> fairly sensible
> explanation of the role of "*without waiting*" and whether is would
> *declunk* the mismatch-thing
> that seems to be going on between *dragging* and *animating*.
>
> Certainly, *Director* (at least in 1999) did not have that sort of problem.
>
> Richmond.
>
> On 22.04.2016 21:37, Colin Holgate wrote:
>> This has the advantage of smooth dragging, but the disadvantage of
>> less smooth animation:
>>
>> local p
>>
>> on mouseDown
>>
>> put 1 into p
>>
>> grab me
>>
>> do animashun
>>
>> end mouseDown
>>
>> on mouseMove
>>
>> do animashun
>>
>> end mouseMove
>>
>> on animashun
>>
>> set the backGroundPattern of graphic "G1" to the id of image
>> ("p"&p&".png")
>>
>> wait 1 with messages
>>
>> put p + 1 into p
>>
>> if p > 15 then put 1 into p
>>
>> end animashun
>>
>>
>> About Director, it can of course do this sort of animation monthly,
>> but also it can be used as an XTalk language.
>>
>>
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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
>


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




More information about the use-livecode mailing list