> I've got the timer starting at a certain point but have no
> idea where to put
> the
> if the timer = number then
> do something
>
> Any ideas what i can attach it to to make this possible?
It all depends on how you constructed the timer, of course - but basically,
you can put your if statement on an exitFrame of anything that will suit
your needs, such as a sprite behavior, frame behavior, even a movie script
(that will affect the entire movie, while the other two are more
controllable).
For example, if you're using director's in-built timer (which you appear to,
from your question) then all you need to do is:
--this is a movie script
on startMovie
startTimer
end
--this is either a movie script or a behavior
on exitFrame
if the timer >= 60*10 then
--do something
end if
end
and, of course, you can add if/else or case clauses to do different things
according to how much time elapsed.
But you must be aware that only one in-built timer can be used at a time.
That's very limited, and that's why D8 has timeOut objects, which can have
many instances (but they work differently then the timer).
Also, Irv Kalb already mentioned that you can use global variables to store
the milliseconds (or ticks)... or (his preference and mine) you can use a
timer object.
But this is probably not the time and place to start another discussion on
the benefits of OOP ;)
Regards,
Karina Steffens,
Lead Programmer
Martello Media Ltd.
4 Islington Avenue
Sandycove
Co. Dublin
Tel: +353 1 2844668
Fax: +353 1 2803195
http://www.martellomm.ie
[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!]