is it possible to pause animation from useAnimatedImageValue
wcandillon opened this issue ยท comments
William Candillon commented
Discussed in #2251
Originally posted by zoom2009 February 24, 2024
is it possible to pause animation from useAnimatedImageValue
I try to create simple game using image animation but when game is over or some how I want to create bird pause animation.
do you guy have any idea for that or I just replace gif to normal image ?
thank you
const bird = useAnimatedImageValue(require('./sprites/bird.gif'))
useEffect(() => {
if (isGameOver) {
// bird.pause()
}
}, [isGameOver])
```</div>
SikarinPoonsawat commented
cool! thank for your help that will help me a lot for create some simple game ๐ก๏ธ
github-actions commented
๐ This issue has been resolved in version 1.2.0 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐