Jump to content

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

Scrolling AND wiping with Blitmask

Recommended Posts



I'm trying to add a wipe transition to an image that is being panned with Blitmask, but as the height of the blitmask changes, the scrollY is also changed. Is there a way to do this, or should I come up with a different way to do the wipe?


Here's my code:

blit = new BlitMask(image, 0, 0, 1920, 1080, false, true);
blit.y = 1080;
blit.height = 0;
blit.scrollY = 0;

var t:Array = new Array();
t.push( new TweenMax(blit, 1, { y:0, height:1080, delay:startTime } ) );
t.push( new TweenMax(blit, 10, { scrollY:1, delay:startTime } ) );
t.push( new TweenMax(blit, 1, { height:0, delay:startTime + 8 } ) );
score = new TimelineMax();

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.