Page 1 of 1

garantee dispatching two events from script one after one

Posted: 05 Apr 2014, 18:39
by adhamdwikat
as i know all changes in the script will affect the output at the next frame ,so how can i dispatch two events from script so i can guarantee that the second one dispatched exactly after the first one in very small time ?
assume i have tow events in my script pauseAll_func and playMovie1_func if i write the folowing code :
//-------------
pauseAll_func();
playMovie1_func ();
changed =true;
//--------------


in the previous code what actually may happens is : the two events will dispatch at the sane time, so the result will not be as expected , so how can i deal with such situations?

Re: garantee dispatching two events from script one after o

Posted: 10 Apr 2014, 19:23
by chriss0212
just place an event behind the play output and delay it by 1 frame

greetz

christian