Replies: 1 comment
-
this is because sprites should be in a |
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.
-
Hi, I have a sprite sheet with size 2048x2048. Each sprite is of size 128x128 and there are 16x16 sprites in the image. I am trying to use Skia to animate these sprites but I am unable to do so.
RN Skia version: 1.0.2
Renimated version: 3.5.4
RN version: 0.72.6
iOS Simulator (ios: 17.2)
Code:
Behaviour: I am only seeing the image cropped/set by first value of offset, or whatever I hard code in the sprites array. There is no animation happening. I have also tried using useRectBuffer but no help there as well. Some documentation/example on how to use sprite sheets and animate them will be helpful especially for those who are new to Skia.
Beta Was this translation helpful? Give feedback.
All reactions