Designing a Gamified Homing Projectile Animation for Level-Up Points #2771
Unanswered
realdevelogic
asked this question in
Q&A
Replies: 1 comment
-
@realdevelogic Have you been able to figure this one out? Seems like conditional element rendering is not very performant within Canvas. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The goal is to create an engaging animation where "level-up points" (represented as a projectile) originate from a UI card and travel dynamically towards a target at the bottom of the page. This animation would give users a sense of accomplishment and reward by visually connecting an action (e.g., earning points) with the resulting progress (e.g., level-up). the current method that I'm using is not performant enough, and lags on low end devices, I'm using a Canvas that's drawn over the entire page and is accessible from all tabs, I dynamically add projectile components to a children array that the Canvas then renders when a new one is added.
I'm using transforms3d to change translateX, translateY, rotateZ, rotateY, rotateX, and useDerivedValue, and a sharedValue representing current progress level of the animation.
Is there an alternative that would be more performant?
Beta Was this translation helpful? Give feedback.
All reactions