Microsoft MakeCode

Deleting a kind

Many times while creating a game, I accidentally add a kind. How can I remove it?

3 Likes

I might be wrong, but you have to go into the JS bit, and at the top of the main.js file, the classes are being created. You might have to delete that line.

You have to go into JS mode:

  1. Search for the namespace SpriteKind { code
  2. Remove which sprite kind you want to delete.
    So:
    image
    Becomes:
    image
    But you may get errors such as Property 'Thingamabob' does not exist on type 'typeof SpriteKind'. Then replace SpriteKind.Thingamabob with whichever kind you want, such as Player or Enemy.
1 Like