Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
snowscarecrow

Motion Blur plugin

Recommended Posts

test_3.zip

Hi

 

Just became a member and are trying to get the Motion blur to work without luck.

 

This is probably the easist thing in the world but I just can't make it work.

 

Grateful for any hints on this, have searched the forums, pasted some code but no luck yet.

 

 

Thanks.

Link to comment
Share on other sites

A few problems I noticed:

  1. You forgot to import com.greensock.plugins.*; so the MotionblurPlugin wasn't correctly referenced.
  2. You miscapitalized MotionblurPlugin (you used MotionblurPlugin, lowercase "b" but it should be capitalized)
  3. You miscapitalized "motionblur" in the tween (you used "motionblur" - the "B" needs to be capitalized).

Once I corrected those things, it seemed to work great! :) Welcome to the club, by the way. Happy tweening!

Link to comment
Share on other sites

Hi, and Welcome to Club GreenSock!

 

I took a look at your file.

 

I made a few small changes to your code. Try this:

 

 

import com.greensock.*; 
import com.greensock.easing.*;
//need to import plugins. 
import com.greensock.plugins.*;


// you had MotionblurPlugin // need capital B
TweenPlugin.activate([MotionblurPlugin]);

//motionblur not motionblur
TweenMax.to(the_mc, 2, {_y:300, motionblur:{strength:10, quality:3, fastMode:true, padding:15}});

 

Just make sure the plugins are imported before activating and keep an eye on those B's;)

 

Let us know if you have any other questions.

Thanks for providing the file and don't worry, we all make those little mistakes.

 

Best,

 

Carl

Link to comment
Share on other sites

Thanks guys!!

 

Seems like the code I pasted from the forum was wrong.

I knew It was easy, you guys are great, talk about fast help!

 

Thanks a bunch!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×