This week's giveaway is in the Spring forum.
We're giving away four copies of liveProject: Protecting User Data with Spring Security and OAuth2 and have Laurentiu Spilca on-line!
See this thread for details.
Win a copy of liveProject: Protecting User Data with Spring Security and OAuth2 this week in the Spring forum!
  • 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: 21
  • 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!
reply
    Bookmark Topic Watch Topic
  • New Topic