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
I'm having a little trouble understanding if I'm doing things the right way. I created my own custom confetto using ConfettoGenerator and then initialized my ConfettiManager like this:
Now I'm able to draw my animation in my onDraw() method by simply doing confettiManager.animate() but what if I want to change the X and Y values during animation. For example, moving the animation as the user moves their finger on screen? Am I missing something since clearly I should not have to create a new confettiManager each time I wanna move the same animation and I must avoid object allocation at all costs in my onDraw() method.
Looking forward to your reply, thanks once again.
The text was updated successfully, but these errors were encountered:
Hello, Thank you for this wonderful library.
I'm having a little trouble understanding if I'm doing things the right way. I created my own custom confetto using
ConfettoGenerator
and then initialized myConfettiManager
like this:Now I'm able to draw my animation in my
onDraw()
method by simply doingconfettiManager.animate()
but what if I want to change the X and Y values during animation. For example, moving the animation as the user moves their finger on screen? Am I missing something since clearly I should not have to create a newconfettiManager
each time I wanna move the same animation and I must avoid object allocation at all costs in myonDraw()
method.Looking forward to your reply, thanks once again.
The text was updated successfully, but these errors were encountered: