Page 1 of 1

[16 Feb 2006] Playing an Animation while Other Things are being Displayed

Posted: Sat Jun 13, 2020 5:31 pm
by PEB
Note: This is an archived post that was originally sent to the Hollywood mailing list on Thu, 16 Feb 2006 11:56:45 -0800 (PST)

Is there a way that I can have an animation playing while other brushes are being displayed one by one?

BTW: I'm using layers so using sprites is not an option.

[16 Feb 2006] Re: Playing an Animation while Other Things are being Displayed

Posted: Sat Jun 13, 2020 5:31 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Thu, 16 Feb 2006 21:22:12 +0100
Is there a way that I can have an animation playing while other brushes are being displayed one by one?
Sure there is. You use NextFrame() for that. See the doc for more info.

[16 Feb 2006] Re: Playing an Animation while Other Things are being Displayed

Posted: Sat Jun 13, 2020 5:31 pm
by PEB
Note: This is an archived post that was originally sent to the Hollywood mailing list on Thu, 16 Feb 2006 12:56:02 -0800 (PST)

This is what I've got right now:

Code: Select all

Function p_Animation()
 NextFrame(1)
EndFunction

SetInterval(1,p_Animation,30)
The problem is that the interval isn't being called until after the rest of the brushes have been displayed; and I'd like to have the animation playing while the other brushes are displayed with their own FX settings.

[17 Feb 2006] Re: Playing an Animation while Other Things are being Displayed

Posted: Sat Jun 13, 2020 5:31 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 17 Feb 2006 11:28:26 +0100
This is what I've got right now:

Code: Select all

Function p_Animation()
NextFrame(1)
EndFunction

SetInterval(1,p_Animation,30)
The problem is that the interval isn't being called until after the rest of the brushes have been displayed; and I'd like to have the animation playing while the other brushes are displayed with their own FX settings.
Oh, that's not possible then. All commands which display FX block the rest of the script. You can't do anything while effects are being rendered. Sorry.