Jump to content
Search Community

LiquidStage, DynamicPinPoints and Tweening

bartpop test
Moderator Tag

Recommended Posts

I'm working with Liquidstage and DynamicPinPoints and have a question regarding whether I'm using these awesome classes to their full potential.

 

Let's say that I've created a DynamicPinPoint myPin based on the bottom right corner of a Sprite, mySprite. I then position myTarget and attach it to the DynamicPinPoint. Now suppose I want to tween the position of mySprite. Is there a parameter to handle updating the pin position during the tween? I added an onUpdate:ls.update parameter to the TweenLite instance to force the LiquidStage object to update. Technically this worked but resulted in some "pixel-splitting" on the tweened object (see attached). The top row of pixels (of myTarget Sprite) stays attached to the DynamicPinPoint, but the rest of the Sprite's pixels lag behind the updated position by 10 pixels or so... in this case probably one frame's worth.

 

I'm curious if my method is this the most efficient technique to keep a DynamicPinPoint's position updated during a Tween?

Link to comment
Share on other sites

Hmmm...I didn't see the issue with the "top row" of pixels looking correct while the others didn't. Everything appeared to render correctly for me. Any chance you could do a screen capture or recording that would show me what you're talking about? The Flash Player itself does have issues sometimes with tearing but it has nothing to do with LiquidStage, TweenMax, or any other ActionScript.

 

There is a LiquidPositionPlugin for the tweening engine, but it probably isn't exactly what you're looking for in this scenario (read the ASDocs for a description). You were right to use an onUpdate to call the LiquidStage's update() method during the tween.

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