Because of the problem with the actorList, many years ago, I wrote a replacement for the actorList which would solve the deletion problem.

Hi Irv,

You know, of course, that there's a simple work-around. Before an object deletes itself from the actorList it gets its position and compares it with the total number of entries. If it isn't the last, it makes a call to the stepFrame handler of the next object and it removes itself. Something like:
--
on mKill( me )
pos = (the actorList).getPos( me )
if ( pos < count(the actorList) ) then
call(#stepFrame, [(the actorList)[pos + 1]])
end if
(the actorList).deleteOne( me )
-- remove remaining references ...
end
--


Cheers,
-Sean.



[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!]

Reply via email to