>On exitFrame
>sprite(12).memberNum=random(4)+85
>end exitFrame
property lastchangetime
on exitframe
if the milliseconds > lastchangetime then
set lastchangetime = the milliseconds + 500
sprite(12).memberNum=random(4)+85
end if
end
You should also look into using property variables to store the
sprite's number, instead of hard coding it to a particular channel.
For example, this would be a way to do the above:
property s,lastchangetime,randomimages
on beginsprite me
set s = the spritenum of me
set lastchangetime = the milliseconds + 500
set randomimages = the number of member "first random image"
end
on exitframe
if the milliseconds > lastchangetime then
set lastchangetime = the milliseconds + 500
sprite(s).memberNum=random(4)+randomimages-1
end if
end
Even this has an imperfection in that it would have problems with
multiple casts, but it should get you along the right lines.
[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!]