[Pipmak-Users] Schedule doesn't stop
Status: Alpha
Brought to you by:
cwalther
From: Fabrizio P. <fpi...@li...> - 2007-01-08 18:25:52
|
Hello, On node 4 I've a patch called Jassy, when I click on an hotspot i go to n= ode 5 where is another patch called Jassy2 and i use this code to animate= it: local Jassy2 =3D patch { face =3D 4, x =3D 100, y =3D 0, w =3D 768, h =3D= 768, image =3D "speech_0.png" } local mouth =3D 0 local i =3D 1 onenternode ( function() pipmak.schedule( 0.25, function() --mouth =3D math.mod(mouth + 1, 3) mouth =3D math.floor(math.random() * 3) --pipmak.dissolve() Jassy2:setimage("speech_" .. mouth .. ".png") i =3D i +1 if i =3D=3D 25 then pipmak.gotonode(4)end return 0.25 end ) end ) the problem is when i come back to node 4 pipmak is still looking for spe= ech_x.png files and doesn't find it so the exclamation point picture is s= hown instead the "Jassy" patch therefore I need that the schedule stops. = In the reference PDF is written that leaving a node removes all of its ti= mers but seems it isn't true... (Using Pipmak v 0.2.6) Thanks, Fabrizio.=0A=0A=0A-----------------------------------------------= -------=0APassa a Infostrada. ADSL e Telefono senza limiti e senza canone= Telecom=0Ahttp://click.libero.it/infostrada08gen07=0A |