What is the best way to create a delay unit a MC has finished playing?
Hi team,
Just creating an example for school students and want to use the most sensible (industry appropriate) way to make this work.
I have a two separate MC drawings of a hand and a coin. Also a button on the stage. When you click the button the hand animates (the thumb extends), a sound effect plays and the coin flips- this happens over 55 frames.
so far so good - Now I can code the random number between 0-1 and the if/then-->else condition to work out if the toss is a heads or tails (and there will be a graphic that will become visible to show the result. My question is - what is the most appropriate way to time the appearance of the result to match the 55 frame lead in? Do you create a ticker and try to get the timing right or is there some other type of event listener I can use to send a message from the end of the MC (i.e - when it gets to the end of its 55 frame run) to say "do this" and trigger a function on the main timeline?
Very interested to hear how you guys would make this work (And also why that is the best idea)
Thanks for your help
have a great day
