This is a migrated thread and some comments may be shown as answers.

Pausing/Resuming Animations

2 Answers 67 Views
Animation
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David
Top achievements
Rank 1
David asked on 23 May 2011, 11:47 AM
Hi Telerik,
How to pause/resume animations?
For example in my game I want by pressing pause button make all animations suspended(saving positions, angles etc...) and after resuming continue from the paused state.

Thanks in advance!

2 Answers, 1 is accepted

Sort by
0
Accepted
Deyan
Telerik team
answered on 23 May 2011, 11:55 AM
Hi David,

Thanks for contacting us and for your question.

I am not quite sure that I correctly understand your scenario.

If you wish to persist the progress of your animations when the user exits your game either back pressing the Home or the Back button of the phone, you should simply store the current values of the animated properties and start new animations from these values once your game resumes.

In case you have a custom Pause/Resume logic implemented, you can call the Pause method of the storyboard to pause your animations. However, if you are using RadAnimation derived functinoality, you will not be able to pause your animations since there is currently no API exposed.

I hope this helps.

Do not hesitate to get back to us in case you have further questions or need assistance.

Regards,
Deyan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
David
Top achievements
Rank 1
answered on 23 May 2011, 12:03 PM
Thank you Deyan for your answer.
Yes I am going to implement Pause/Resume logic.
I think that way is the best form me!

Best Regards,
David.
Tags
Animation
Asked by
David
Top achievements
Rank 1
Answers by
Deyan
Telerik team
David
Top achievements
Rank 1
Share this question
or