Javascript - add another frame to animation

Hi everyone,

I think the title explains it, but does anyone know - in Javascript, how can I add another frame to an animation?

I’d like to add another, unpredetermined image (from Resources) to my animation on the dynamic fly, and it appears that Javascript will be the way to go for that.

I would absolutely love and appreciate either the answer I’m looking for, or a very in-depth tutorial of how to read and interpret their Javascript game engine reference :sweat_smile:

Anyone? Anyone? …Bueller?

Hi - Could you create another object that’s only visible on the missing frame - that is attached via pos x y to that object?
Then select a random animation for that one?
ps - I know it’s not javascript but there weren’t any comments forthcoming

Thanks for the reply!!

There are going to be quite a lot of choices for the image, so for what you’re suggesting I’d still have to manually enter in every. single. option possible… which is what I’m trying to avoid :sweat_smile:

1 Like

There is a screen shot extension. It’s code might have clues to help you.

There’s also a sprite sheet animations extension. Maybe, that concept might help. IDK.