Jump to content
Search Community

transformAroundPoint

monty test
Moderator Tag

Recommended Posts

I have a sprite with a graphic in it that I want to grow in size from the top right hand corner point instead of the top left hand corner.

I tried using thee transformAroundPoint function but it doesn't seem to work the way I'm talking about.

 

Here is what I have setup now.


transformPoint = new Point(this.x+ imageW, this.y);
TweenMax.to(frame, 3, {transformAroundPoint:{point:transformPoint}, width:bmt.width, height:bmt.height, ease:Expo.easeOut});

Link to comment
Share on other sites

You forgot to put the width/height properties inside the transformAroundPoint object. It should be:

 

TweenMax.to(frame, 3, {transformAroundPoint:{point:transformPoint, width:bmt.width, height:bmt.height}, ease:Expo.easeOut});

 

And don't forget to activate the TransformAroundPointPlugin first too :)

Link to comment
Share on other sites

I just tested it and it worked perfectly. You are a Club GreenSock member, right? And you activated the plugin? If you're still having trouble, please post a sample FLA that clearly demonstrates the problem (the simpler the better).

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.
×
×
  • Create New...