You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi ThomasGorisse I want to change the animation on click and everything is working fine but when I reached the last index I want to move again 0 indexes but this is not working can you please let me know why this is not working. check my code is given below and thanks in advance.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi ThomasGorisse I want to change the animation on click and everything is working fine but when I reached the last index I want to move again 0 indexes but this is not working can you please let me know why this is not working. check my code is given below and thanks in advance.
index = 0
btn_animation.setOnClickListener {
++index;
if(index <= animationCount)
{
if(index == animationCount)
{
index = 0
}
playAnimation(index,true)
}
}
playAnimation()
Beta Was this translation helpful? Give feedback.
All reactions