>> I need to script a wait command
>
>Well here's a simple way:
>
>on waitFor intSeconds
>  endTime = the milliSeconds + ( 1000 * intSeconds )
>  repeat while the milliSeconds < endTime
>  end repeat
>end
>
>HTH
>Rob

that would stall all further processing until the loop is completed.
instead, try to put this into a behaviour:

property pTime

on beginsprite me
  pTime=the timer+pTime
end

on exitframe me
  if pTime>the timer then
    go the frame
  end if
end

on getpropertydescriptionlist me
  return [#pTime:[#comment:"Time to wait:",#format:#integer,#default:60]]
end

// Patrick


[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!]

[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!]

Reply via email to