Totally Loopy

Richmond richmondmathewson at gmail.com
Fri Jul 17 07:13:16 EDT 2015



On 07/17/2015 01:57 PM, Peter TB Brett wrote:
> On 2015-07-17 12:52, Richmond wrote:
>> I am animating a series of images like this:
>>
>> on animaSHun
>>    set the vis of img "M1" to true
>>    set the vis of img "M4" to false
>>    wait 4 ticks
>>     set the vis of img "M2" to true
>>    set the vis of img "M1" to false
>>    wait 4 ticks
>>     set the vis of img "M3" to true
>>    set the vis of img "M2" to false
>>    wait 4 ticks
>>    set the vis of img "M4" to true
>>    set the vis of img "M3" to false
>>    wait 4 ticks
>>    animaSHun
>> end animaSHun
>
>
> You need to:
>
>     wait 4 ticks with messages
>
> Using "with messages" means that the engine can process clicks, key 
> presses, etc. while waiting.  See also 
> <http://livecode.com/resources/api/#livecode_script/wait>.
>
>                            Peter
>

Thanks a lot! Just what the doctor ordered!

Richmond.




More information about the use-livecode mailing list