> on numTimesThroughList
> repeat with listLength = 1 to count(newDistanceList)
> sprite(1).loc = getAt(newDistanceList,listLength)
> keepTime
> go to "fixation" --This is the cross; it's in
> --another frame.
> end repeat
> end
>
> - --This determines how long the spot will appear
> on keepTime
> startTimer
> repeat while the timer < 20
> go to the frame
> end repeat
> end
I can't see from this how you trigger the numTimesThroughList handler, but I
think your problem may relate to the use of a repeat loop. Perhaps an
alternative approach might be to grab the first entry in your
'newDistanceList' and use it, then delete this entry from the list. Also,
your "keepTime" handler is not 'nice' in that it will freeze everything for
20 ticks.
Try:
on numTimesThroughList
if count(newDistanceList) then
sprite(1).loc = newDistanceList[1]
newDistanceList.deleteAt(1)
keepTime
go to "fixation"
else
-- no more entries in newDistanceList
-- do whatever's necessary to handle this condition
end if
end
I don't know if this will help as I can't get my head around what you're
trying to achieve with the code you posted.
HTH,
-Sean.
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]