Jump to content
GreenSock

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

Blitmask wrap offset

Recommended Posts

Hi,

 

first of all, sorry for my english ;) I have a problem with the blitmask wrap function.

My movieclip have different position of images at the edges. If I offset the Movieclip,

so that it fit to the other, it cut of the overlapping images. 

My question, is there a way to fix this issue. For better understanding I have attached the Fla.

Thanks a lot.

 

Greets,

Cosmo

 

ScrollWall02.zip

Link to comment
Share on other sites

Hi and welcome to the GreenSock forums,

 

Thanks for the fla, it helped me visualize the problem.

 

Unfortunately there is no way for BlitMask to handle that type of overlapping. 

 

If you duplicate your grid like this: http://prntscr.com/6a383b

 

You can then find a seamless loop point. basically tween the grid to the left until the word logo block is aligned with the left edge of your blitmask.

 

here is some basic code that shows infinite looping and wrapping:

 

import com.greensock.*;
import com.greensock.easing.*;
import flash.events.Event;


var startX:Number = mc.x;
var blitMask:BlitMask = new BlitMask(mc, 0, 0, 300, 250, true, true, 0, true);


stage.addEventListener(Event.ENTER_FRAME, move);


function move(e:Event):void {
  if(mc.x > - 585){
      mc.x-=2 
 } else {
mc.x = startX
}
}

http://greensock.com/forums-support-files/flash/seamless-grid-blitmask/

the thin light grey horizontal line is in my image... not a BlitMask glitch. 

 

attached is a zip of the fla (cc 2014)

 

 

 

 

long-grid-cc.zip

Link to comment
Share on other sites

Thanks a lot for the great support. I will check this out.

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.
×