开发者

Blur Tween in AS3

开发者 https://www.devze.com 2023-01-16 16:02 出处:网络
I wish for a mo开发者_如何学Pythonvie clip to slowly blur over a couple of seconds. Is there some way to do this without using Tweener or some other external class? I only wish to use the tween class.

I wish for a mo开发者_如何学Pythonvie clip to slowly blur over a couple of seconds. Is there some way to do this without using Tweener or some other external class? I only wish to use the tween class.

The code I use at the moment is below, but this doesn't do it gradually, just turns the blur on like a switch:

var blur : BlurFilter = new BlurFilter();
blur.blurX = 4;
blur.blurY = 4;
blur.quality = BitmapFilterQuality.HIGH;
chrNicky.filters = [blur];

I need the blur to happen over the course of two seconds.

Cheers, Dan


You can check out the following article I wrote few years ago:

Adding Directional Motion Blur to APE (AS Physics Engine)

My article also includes an isolated Flex-sample which demonstrates how to add directional motion blur to a tween. Also it explains the how the implementation works in principle.

Download Directional Motion Blur Sample

0

精彩评论

暂无评论...
验证码 换一张
取 消