Archive for February 21st, 2008

Go 0.4.1 + HydroTween

Check the most recent Go post for updates

It’s still in it’s infancy, but I’ve made some progress with HydoTween after working with Moses on some different direction with Go over the weekend. During the R&D process with him, I took a little of what we did and merged it into HydroTween. Because Go is still very new and still evolving, it’s very likely that HydroTween will evolve quickly as well. I haven’t fully tested multiple targets in an array yet, but on individual tweens I’ve been able to add a number of tweenable features. Also with the help of Grant Skinner’s ColorMatrix class, I’ve added image tweening capability.

Here’s an example of using HydroTween. Should be somehwat familiar to Fuse/Zigo users:

HydroTween.go(mc,
                {
                        x:400,
                        y:150,
                        scaleX:.6,
                        scaleY:.6,
                        _contrast:50,
                        _saturation:50,
                        DropShadow_strength:1,
                        DropShadow_distance:16,
                        rotation:360,
                        start_alpha:.5,
                        alpha:1,
                        scaleX:5,
                        scaleY:5
                       
                }, 2, 0, Elastic.easeOut, null, null, null, 2, Elastic.easeOut);

Here’s the current list of tweenable items in addition to the basic props (x,y,alpha, etc). This is still in beta so lemme know if there are problems.

“Bevel_angle”,
“Bevel_blurX”,
“Bevel_blurY”,
“Bevel_color”,
“Bevel_distance”,
“Bevel_highlightAlpha”,
“Bevel_highlightColor”,
“Bevel_quality”,
“Bevel_shadowAlpha”,
“Bevel_shadowColor”,
“Bevel_strength”,

“Blur_blurX”,
“Blur_blurY”,
“Blur_quality”,

“DropShadow_alpha”,
“DropShadow_angle”,
“DropShadow_blurX”,
“DropShadow_blurY”,
“DropShadow_color”,
“DropShadow_distance”,
“DropShadow_quality”,
“DropShadow_strength”,

“Glow_alpha”,
“Glow_blurX”,
“Glow_blurY”,
“Glow_color”,
“Glow_quality”,
“Glow_strength”

“Sound_volume”,
“Sound_pan”

“_brightness”,
“_contrast”,
“_saturation”,
“_hue”

I will probably change the sound tweening keys at some point, but you get the idea:)

Next on the list are start props, or what Moses and I discussed as tween “const” variables. Items that are params but aren’t necessarily tweenable. Such as quality, filter colors in some instances, etc.

Also I’ve been out of the Papervision3D loop since xmas, but I’m looking to jump back onto that. I’ll have to see if the the guys have made progress on tweening DisplayObject3D with the new version yet.

Go has been progressing quickly as of late. I will begin to post my progress here as well as add HydroTween to the svn at some point.

Click here to go to Go, and be sure to sign up for the mailing list!


HydroTween 0.4.4 Source and Example

Thursday, February 21st, 2008