|
EZIO Wire Cross Examples with a Timer in a Timer
Download audio example with timers Download QuickTime wirecross example with timers
property zero_filter, clicker
on beginsprite zero_filter = 0 clicker = 0 end
on exitframe if readline(1) = 0 then --cross the wires zero_filter = zero_filter + 1 if zero_filter = 1 then clicker = clicker + 1 if clicker = 1 then puppetSound 1, "whoosh" put "whoosh" into member 6 end if if clicker = 2 then puppetSound 2, "buzzing" put "buzzing" into member 6 clicker = 0 end if end if end if if readline(1) = 1 then --wires not crossed zero_filter = 0 end if end
end
|