Is there a way to animate sprites at a specific fps? #2189
Replies: 3 comments 4 replies
-
yes definitely. Did you look at the Atlas API? It's exactly what's it's for. there is useClock hook you can use to know when to update the sprite rectangle: We also support gif or animated webp |
Beta Was this translation helpful? Give feedback.
-
Hey @itsyoboieltr I am having FPS issue but I am able to implement Sprite Animation using If you have already solved this issue, can you please also share your learning with us? |
Beta Was this translation helpful? Give feedback.
-
This is an example how you can control animation speed with reanimated: https://github.com/Shopify/react-native-skia/blob/main/package/src/external/reanimated/useVideo.ts |
Beta Was this translation helpful? Give feedback.
-
Hello, I have a sequence of 8 sprites. I would like to show them one-by-one at 8 frames per second to show an animation. Is it possible to do this using Skia in a performant way? Are there any examples of this?
Beta Was this translation helpful? Give feedback.
All reactions