Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 11-06-2009, 01:01 AM   #5 (permalink)
TheRedge
Registered Member
 
Join Date: Oct 2009
Location: Austria
Posts: 20
TheRedge is on a distinguished road
Default

Another code sample showcasing the animation system:

Code:
// we want to animate the jupiter-image that was created above    
SPTween *tween = [SPTween tweenWithTarget:jupiter time:5.0f transition:SP_TRANSITION_EASE_IN];

// you can animate any property as long as it's numeric (float, double, int). 
// it is animated from it's current value to a target value.
[tween animateProperty:@"x" targetValue:310];
[tween animateProperty:@"scaleY" targetValue:0.5];
[tween animateProperty:@"rotation" targetValue:PI_HALF];

// the so-called "juggler" will carry out the tween for you.
[self.stage.juggler addObject:tween];
TheRedge is offline   Reply With Quote
 

» Advertisements
» Online Users: 550
20 members and 530 guests
007007, Absentia, ayitiere, Batman, Brian965, BrianSlick, chiataytuday, Duncan C, esoteric, franzwarning, iphomh, linkmx, mariano_donati, mediaspree, Punkjumper, Rudy, simplymuzik3, skiril, Speed
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,318
Threads: 93,988
Posts: 402,408
Top Poster: BrianSlick (7,978)
Welcome to our newest member, Libera
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:03 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.