SharkPool-SP / SharkPools-Extensions

SharkPool's Collection of Scratch Extensions made by him and others.           If Vercel is Blocked use: https://sharkpool-sp.github.io/SharkPools-Extensions/
https://sharkpools-extensions.vercel.app
34 stars 25 forks source link

[Animations] Animations overlap when played at the same time + option to force an animation #108

Closed gomiigg closed 2 weeks ago

gomiigg commented 2 weeks ago

I cannot record a video demonstration right now, but I have provided a sample project with the following directions.

I am testing implementation for an animation system using Sparrow v2 Texture Atlases and the Animations extension. However, when an animation is playing, starting another one does not stop the last played animation. The sprite begins to flicker between both animations.

In the project file, simply press 'R' to begin a long animation. Then press 'SPACE' in between, and notic the flickering. A possible workaround is to make a custom 'Force Animation ()' block that stops all existing animations before playing the new animation, but I feel like this should just have native support right in the extension.

SparrowAtlas.zip

SharkPool-SP commented 2 weeks ago

couldnt you just stop all other animations

gomiigg commented 2 weeks ago

Tried the following as a workaround, but this simply causes a delay between animations, and doesn't work when animations are played quickly or called on the same frame.

image
SharkPool-SP commented 2 weeks ago

Rewrote the extension. Its now faster and should fix that delay issue