Sprite Slicer Tool [Showcase]

:video_game: MakeCode-Arcade-ready, fully-animated sprites with the option to add movement mechanics!

Check out the Tool: HERE

Check out the Tutorial: HERE

Sprite sheets into Makecode Arcade in seconds! :smiley:

1 Like

Demo Project: HERE

This was all generated by my tool, the only thing I had to change was the names for the anims like ā€˜Walk_Right’ when I went back to Blocks mode.

image

1 Like

Wowowowowowow

Also I’d like to point out the possible bug

You forgot the update the enum ā€œActionKindā€ to address the possible new Action Kinds.

The reason as to why it may switch back as it doesn’t find a ActionKind for that, so it switches to a preset already included within the ActionKind.

To fix this bug, I suggest adding a script that adds this to the enum.

For example, here’s a script that would accommodate an ā€œAttackingā€ action:

enum ActionKind {
Walking,
Idle,
Jumping,
Attacking,
}

Then after switching back, the ActionKinds with ā€œAttackingā€ shouldn’t change.

Be sure to add this to the top of your generative typescript, thanks.

2 Likes

You’re partially right.

Yes, the Blocks view needs to ā€œknow aboutā€ the custom ActionKinds for them to appear in the dropdown.

But, you can’t redeclare the enum ActionKind; that would conflict with the existing enum from the character animation extension. Makecode would throw an error or just ignore it.

It already uses the namespace extension pattern (namespace ActionKind { export const Walk_Right = 1001; }, which is the correct TypeScript approach.

The actual issue is Makecode’s Blocks renderer seems to have its own internal registry for ā€œkindsā€ that’s separate from the JavaScript enum values. Custom kinds need to be registered using MakeCode’s //% isKind decorator system, and that is already baked into the extension architecture. So, unfortunately not something you can just paste code with.

For now, you’ll have to change the kinds when switching back to Blocks…

And I’ll work on my own Animation extension.

please stop cooking, its overwhelming

1 Like

Haha thanks!

I’ve made a webpage hub for all the tools and extensions I have (and will) create so bookmark the link: HERE

1 Like