Re: Playing an image sequence in reverse
Status: Alpha
Brought to you by:
cwalther
From: Urs H. <ur...@an...> - 2009-10-01 10:47:10
|
James Wilson wrote: > Thanks, I think this last little problem is my fault: > I click on the hotspot and nothing happens. I think it's because I closed > "hotspot" incorrectly. What do you think? Sorry to drag this out. Sorry, this is my fault. The line if animpos < 0 then animpos = 100 end only makes sure that animpos gets back to 100 once it reaches -1. I forgot to insert a line that actually decreases animpos by 1. So this should work now: hotspot { onmousedown = function() pipmak.schedule( 0.04, function() animpos = animpos - 1 if animpos < 0 then animpos = 100 end an_linkingBook:setimage ("an_linkingBook/an_linkingBook_" .. animpos ..".jpg") return 0.04 end ) end } |