• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Why isn't updateQuestion executing on changeAnimation(onAnimationEnd() )?

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Note: cross-posted from stack overflow: https://stackoverflow.com/questions/67375221/why-isnt-updatequestion-executing-on-changeanimationonanimationend
I'm creating an animation for my trivia game. Once the user selects an answer(either true or false) for each statement, the question will slide to the left and display the next question.

The functionality is working fine, however, I'm confused on one concept.

When I call changeTheQuestion(invokes animation) and updateQuestion(set's the new text of question and set's the new text of counter) like this:



...everything works fine. However, when I move the updateQuestion() call to onAnimationEnd() of changeTheQuestion(), it doesn't update the question:



What may be causing this? Thanks!
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic