Game Development Community

Get Twillex! (I wrote a free Tween engine in TorqueScript)

by Charlie Patterson · in Torque Game Builder · 01/30/2012 (10:30 am) · 6 replies

Hi. It's questionable form to cross-post like this, but I made a Torque tool you can play with and I put it in the resources area of garage games:

www.garagegames.com/community/blogs/view/21480

I didn't know the resource area existed two weeks ago. So if you didn't know that, go over and check it out!

#1
01/30/2012 (10:43 am)
Hey Charlie, I thought that tween engines purpose was to make some things available to code, independently from the Flash timeline interface.

Now you seem to have done something here, that turns my concepts up down :)

So would you like to explain a bit more what a tween engine is, and what would be used for?
#2
01/30/2012 (10:48 am)
thanks! Your video seems to explain better than any definition what is all about.
#3
01/30/2012 (11:25 am)
Pretty awesome stuff right there.
#4
01/30/2012 (1:44 pm)
@Novack, good point, even if you did figure it out from the video, I think I'll write a note here. :)

This is much like Flash for programmers, yes.

While flash lets animators "tween" between key frames on a timeline, it also lets developers use an API to tween between object states as well.

Twillex is similar to the developer's API, which I believe they call the "transitions" library. However, developers seem to like Flash's third-party tweening engines better, such as TweenMax.

One of the keys here is being able to use non-linear motion between key frames. Things speed up and slow down between end points. This idea is called "easing." If you look at the iPhone interface, you'll see another example of how the animations is almost never linear. Linear is so 2007. :)
#5
01/30/2012 (2:10 pm)
Haha, thanks very much Charlie!
#6
02/03/2012 (12:55 pm)
Quick update. For those looking for documentation, I spent a while creating some on sourceforge. It tells how to create Tweens and use them with examples. It also shows what different tweens do. I plan to continue to update it a bit more:

sourceforge.net/p/twillex/wiki