freem-trg / eaze-tween

Automatically exported from code.google.com/p/eaze-tween
0 stars 0 forks source link

Some features #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What about?
1. position/duration tween properties

2. pause, unpause methods

3. Global scale value, like GTween.timeScaleAll 

Original issue reported on code.google.com by System.g...@gmail.com on 16 Oct 2010 at 3:46

GoogleCodeExporter commented 9 years ago
I vote for number 1 please:)

Original comment by lukasz.g...@gmail.com on 29 Aug 2013 at 11:46

GoogleCodeExporter commented 9 years ago
Ad 1 position percentage can be added like this:
if (t._onUpdate != null) 
{
    var args:Array = t._onUpdateArgs ? t._onUpdateArgs.concat() : [];
    args.push(k);
    t._onUpdate.apply(null, args);
}

in the callback for onUpdate always last argument will be this percentage

Original comment by lukasz.g...@gmail.com on 29 Aug 2013 at 11:58

GoogleCodeExporter commented 9 years ago
Interesting patch suggestion for an obvious missing information - would it 
break existing code?

Original comment by philippe...@gmail.com on 16 Sep 2013 at 9:11

GoogleCodeExporter commented 9 years ago
Well it may break as when callback has no arguments defined then ArgumentError 
(argument count mismatch), simple resolution is to advise to always use 
callbacks with ...args argument.

Original comment by lukasz.g...@gmail.com on 25 Sep 2013 at 7:25