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

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
PEB
Posts: 591
Joined: Sun Feb 21, 2010 1:28 am

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

Post 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.
User avatar
airsoftsoftwair
Posts: 5919
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

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

Post 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.
PEB
Posts: 591
Joined: Sun Feb 21, 2010 1:28 am

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

Post 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.
User avatar
airsoftsoftwair
Posts: 5919
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

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

Post 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.
Locked