- (void)moveToX:(float)x y:(float)y;
- (void)scaleTo:(float)scale;
- (void)fadeTo:(float)alpha;
//returns self
- (id)moveToX:(float)x y:(float)y;
- (id)scaleTo:(float)scale;
- (id)fadeTo:(float)alpha;
This way, you don't need a lot of lines for every tween
Made a timeline to be able to add batches of tweens, and now I see that it would be really useful to be able to do the following
timeline = [[SXTimeline alloc] init];
[timeline addBatch:
[[[SPTween tweenWithTarget:self time:1.0f] moveToX:50 y:50] scaleTo:2.0f],
etcetc,
nil];
Also was surprised there wasn't a rotate to? That I can add in an extension, but in the other ones the functions in my extension won't be called when they only differ in return value..
(Also I would've totally branched sparrow and made it myself. But git is scary. 😃)