Jump to content

tweening scale moves graphic?


Recommended Posts

I am trying to make a circle bigger on hover but I'm seeing the actual graphic move in position. Any idea why this is?

var circle = new PIXI.Graphics();circle.beginFill(Math.random() * 0x808008 + 0x808080,0.9);circle.drawCircle(x,y,radius);circle.endFill();circle.interactive = true;circle.buttonMode = true;circle.hitArea = new PIXI.Circle(x,y,radius);stage.addChild(circle);circle.mouseover = mouseOverCallback;function mouseOverCallback(e){TweenMax.to(this.scale,1,{x:2,y:2});}
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...