Jump to content
Search Community

[noob question 2] set duration to frames by default

goonzy test
Moderator Tag

Recommended Posts

Nope, the vast majority of users perfer timing based on seconds instead of frames because it ensures that timings will remain consistent even if the frame rate bogs down during CPU-intensive rendering routines or whatever. Frames-based tweens will always play a certain number of frames, so if the frame rate slows down, everything.....will....take....longer....to....complete. :)

 

There isn't a way to set the default timing mode to frames. Just set useFrames:true in your tweens.

Link to comment
Share on other sites

so basically, if my line is

 

TweenMax.fromTo(red_double_2, 0.5, {y:8, scaleY:0.6,colorMatrixFilter:{brightness:0.4}}, {y:100, onComplete:bar_1_low, ease:Sine.easeIn, scaleY:1, colorMatrixFilter:{brightness:1}});

 

at 50fps as I want my tween to be 25 frames long, I just change it to:

 

TweenMax.fromTo(red_double_2, 25, {y:8, scaleY:0.6,colorMatrixFilter:{brightness:0.4}}, {y:100, onComplete:bar_1_low, ease:Sine.easeIn, scaleY:1, colorMatrixFilter:{brightness:1},useFrames:true}); 

??

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