- Most Wanted Bounty Winner
- Sold between 250 000 and 1 000 000 dollars
- Has been a member for 5-6 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Won a Competition
- Bought between 100 and 499 items
- Exclusive Author
- Referred between 200 and 499 users
Anybody knows how to change Tweener’s default transition type? The default one is “easeOutExpo” i think, but i want it to be the “linear” one, because that is how it should be
I just started using tweener and it’s a little bit frustrating to change the transition type for almost every tween.. Does anybody who uses tweener know how to do that?
yeah just replace the words easeOutExpo with linear, if you have quite a few to change, just press ctrl F, and use the find and replace feature so you can skip through them all in no time. hope that helps
- Most Wanted Bounty Winner
- Sold between 250 000 and 1 000 000 dollars
- Has been a member for 5-6 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Won a Competition
- Bought between 100 and 499 items
- Exclusive Author
- Referred between 200 and 499 users
The default syntax is this : Tweener.addTween(mc,{_x:0,time:2})
To make a linear transition you have to use this : Tweener.addTween(mc,{_x:0,time2,transition:”linear”})
So there is extra typing in there and i want to get rid of it
Thanks for your reply though
- Author was Featured
- Bought between 10 and 49 items
- Exclusive Author
- Has been a member for 6-7 years
- Interviewed on the Envato Notes blog
- Item was Featured
- Microlancer Beta Tester
- Referred between 200 and 499 users
you have to change the Tweener class itself. I think line 162 is the required line you have to change. if (!Boolean(rTransition)) rTransition = _transitionList[“easeoutexpo”];
to:
if (!Boolean(rTransition)) rTransition = _transitionList[“linear”];
- Most Wanted Bounty Winner
- Sold between 250 000 and 1 000 000 dollars
- Has been a member for 5-6 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Won a Competition
- Bought between 100 and 499 items
- Exclusive Author
- Referred between 200 and 499 users
Thanks Saafi
It was line 181 in my class and the syntax was a little bit different but it worked 
- Microlancer Beta Tester
- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 50 and 99 items
- Exclusive Author
- Has been a member for 3-4 years
- Item was Featured
- Sold between 100 000 and 250 000 dollars
This thread has been useful to me in a project. Thanks enhanced
one curiosity: why is easeOutSine slower then easeOutExpo
?
- Sold between 50 000 and 100 000 dollars
- Author was Featured
- Author had a Free File of the Month
- Exclusive Author
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Europe
- Has been a member for 3-4 years
- Referred between 10 and 49 users
- Microlancer Beta Tester
- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 50 and 99 items
- Exclusive Author
- Has been a member for 3-4 years
- Item was Featured
- Sold between 100 000 and 250 000 dollars
yes, I know, lol
But when I change the transition type to easeOutSine and leave the time unchanged it seems so much slower 
edit: nevermind, I get it now thanks
