kaplay icon indicating copy to clipboard operation
kaplay copied to clipboard

bug: `SpriteAnimPlayOpt.onEnd` behaves unexpectedly with playing another anim

Open hinum opened this issue 2 months ago • 3 comments

Bug Description

you cant play another anim following another anim using the onEnd opt. this might not be best practice, but it should still work regardless.

Version

v4000 alpha 22, also present in v3001.0.19

Playground Link

https://play.kaplayjs.com/?code=eJx1UMFqwzAMvfsrhE8WhKQrdAePHfcFvayMMZRYC2GJbWyXMkb%2BfUncbU1g7yLrSU%2B856qCY6KQIhBYvkBLA4sP8j19KnwQvSNz9KFLrGR9Dn4g%2BzbXzrayAFk1gS%2FVZlD6ZfglYELsu4afNdwXf%2B1JwyG3ZLsh6uvqDDkz8paZ8R7coGFXrMjkNOwPay56ZqPh7mZ1zM%2BpjFMe0TgbE9TwCGSMesmm%2FgmIWepdVA3bxEEhilcUoi6X%2F8lmp6Tg7JM1CrNrw%2FW5LXvXKsnWsJG40FvRr8OV%2BAfbI%2FvrlSVLToRiHPEbhbt2XQ%3D%3D&version=4000.0.0-alpha.22

Extra information

No response

Summary

  • [ ] Fixed in v4000
  • [ ] Fixed in v3001

hinum avatar Oct 27 '25 03:10 hinum

https://play.kaplayjs.com/?code=eJx1UMFuwyAMvfMVFieQoqSr1B2Yutu%2BoJdN0zSR4EWoCSCgiqYp%2Fz7SdC3Jtnex%2FfzAfq4qOETpYwAJBgdoZY%2FkKF0nPxl%2FIJ2V6uC8jshoffKul%2BZ9itq0tABaNR6HatUo3bn5RSAhdLrBZwH3xa18EbCbS2l0H8RFOoFODM2ZCR%2Fe9gI2xYKMVsB2t%2BSCQ1QC7jLpOKcpjMkPaawJEWrYg1SKvc5L%2FWOQz0%2BdDaxBE9EzzskbJ6Quz%2FeZl%2F1xas2TUYxnqyusT23Z2ZZRNAoV5dfWIHVkmwKSfv%2B4cvvn7zl%2BT8qxnrrNxl6PsmDGm%2BCSjulY3wULg6s%3D&version=4000.0.0-alpha.22

mflerackers avatar Oct 27 '25 03:10 mflerackers

I feel like the user shouldn't be expected to know a work around for something that should just work. especially when it isn't obvious on why this wouldn't work.

hinum avatar Oct 27 '25 07:10 hinum

I just wanted to help you while we fix the issue.

On Mon, 27 Oct 2025 at 16:50, Visut Hsu @.***> wrote:

hinum left a comment (kaplayjs/kaplay#930) https://github.com/kaplayjs/kaplay/issues/930#issuecomment-3449922356

I feel like the user shouldn't know a work around for something that should work. there's nothing obvious on why this wouldn't work.

— Reply to this email directly, view it on GitHub https://github.com/kaplayjs/kaplay/issues/930#issuecomment-3449922356, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHIYW2YR2XYXO27I4VRNBL3ZXFCVAVCNFSM6AAAAACKI5FQGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTINBZHEZDEMZVGY . You are receiving this because you commented.Message ID: @.***>

-- Kind Regards,

Marc Flerackers Software Engineer

mflerackers avatar Oct 27 '25 07:10 mflerackers