Hi,

I'm new to cocoa and have started to develop a board game for the iPhone.
I've been looking at the "ColorSlidingPuzzle" example provided by Apple.
I managed to animate a piece move using the function:
- (void) movePiece:(Move*) move {
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.50];

// Change the position of my piece (an UIImageView)

[UIView commitAnimations];
}

Now here is my problem. I have an array with several moves that I want to display. Doing a for loop obviously doesn't work. Only the last move is displayed (because nothing is updated until returning to the run loop I guess)...
for(Move *move in moveArray)
        [self movePiece:move];

How can I display this succession of moves?

Thanks

Benjamin
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to