Check out how I’ve improved my transitions by 20% in efficiency!
http://www.ardentkid.com/blog/2012-10-17/predeterminate-tweens-transitions [import]uid: 36792 topic_id: 32050 reply_id: 332050[/import]
Check out how I’ve improved my transitions by 20% in efficiency!
http://www.ardentkid.com/blog/2012-10-17/predeterminate-tweens-transitions [import]uid: 36792 topic_id: 32050 reply_id: 332050[/import]
20%!!! I’m checking this out now … very cool! [import]uid: 40033 topic_id: 32050 reply_id: 127737[/import]
“The quadratic in/out easing functions I’m using are based on the MIT-licensed GTween for AS3. I believe that means there’s question as to whether I could use it in a profit-earning piece of software. But for now, I’ll just share what I’ve come up with anyways.”
I guess it’s obvious but just to clarify, part of the code is licensed so that exact code you’re using isn’t available? [import]uid: 40033 topic_id: 32050 reply_id: 127739[/import]
My experience has been that using transition.to is faster than repeatedly setting x or y values on every frame like your method does here. It’s tricky to actually benchmark it though, so I could be wrong.
Personally I’ve been using the TNT Transition library for my projects http://developer.coronalabs.com/code/pausable-timers-and-transitions-speed-adjustment. This one uses transition.to but still has functionality for pausing/resuming a transition.
As for the license restrictions, the MIT License does allow for us in commercial projects. The author’s site itself says “GTween is licensed under the MIT license, so it can be used and modified with almost no restrictions in commercial projects beyond maintaining the header in the source files.” [import]uid: 135827 topic_id: 32050 reply_id: 127753[/import]
20%!!! I’m checking this out now … very cool! [import]uid: 40033 topic_id: 32050 reply_id: 127737[/import]
“The quadratic in/out easing functions I’m using are based on the MIT-licensed GTween for AS3. I believe that means there’s question as to whether I could use it in a profit-earning piece of software. But for now, I’ll just share what I’ve come up with anyways.”
I guess it’s obvious but just to clarify, part of the code is licensed so that exact code you’re using isn’t available? [import]uid: 40033 topic_id: 32050 reply_id: 127739[/import]
My experience has been that using transition.to is faster than repeatedly setting x or y values on every frame like your method does here. It’s tricky to actually benchmark it though, so I could be wrong.
Personally I’ve been using the TNT Transition library for my projects http://developer.coronalabs.com/code/pausable-timers-and-transitions-speed-adjustment. This one uses transition.to but still has functionality for pausing/resuming a transition.
As for the license restrictions, the MIT License does allow for us in commercial projects. The author’s site itself says “GTween is licensed under the MIT license, so it can be used and modified with almost no restrictions in commercial projects beyond maintaining the header in the source files.” [import]uid: 135827 topic_id: 32050 reply_id: 127753[/import]