Pausing/Resuming Animations

3 posts, 1 answers
  1. David
    David avatar
    3 posts
    Member since:
    May 2011

    Posted 23 May 2011 Link to this post

    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. Answer
    Deyan
    Admin
    Deyan avatar
    2041 posts

    Posted 23 May 2011 Link to this post

    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>>
  3. DevCraft banner
  4. David
    David avatar
    3 posts
    Member since:
    May 2011

    Posted 23 May 2011 Link to this post

    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.
Back to Top