# Makecode Arcade having issues with variables and sprite types

**URL:** https://forum.makecode.com/t/makecode-arcade-having-issues-with-variables-and-sprite-types/38735
**Category:** Help
**Created:** [August 18, 2025, 2:57am UTC](https://forum.makecode.com/t/makecode-arcade-having-issues-with-variables-and-sprite-types/38735 "2025-08-18T02:57:54Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![a012](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/a012/32/24099_2.png) [@a012](https://forum.makecode.com/u/a012)
#### Post date: [August 18, 2025, 4:32pm UTC](https://forum.makecode.com/t/makecode-arcade-having-issues-with-variables-and-sprite-types/38735/3 "2025-08-18T16:32:33Z")

</div>

> [@Trr](#):
>
> Though I don’t have images or clips of this happening, sometimes, either all variables or sprite types (excluding the ones that were already given to you like Player, Enemy, etc) will randomly get deleted from the project.
> 
> Other times, when variables aren’t deleted, they would get replaced another variable.
> 
> This has been slowing me a lot on my mini game jam project. I don’t think there’s need to reply to this, I just wanna report this issue.

1. **Name all your assets explicitly** : Go through your sprites, variables, and kinds, and give them clear, unique names right away. This seems to help prevent automatic cleanup or deletion by the editor.
2. **Clean up duplicates and unused items** : Before saving or reloading, delete any duplicate assets (e.g., multiple copies of the same sprite) and replace them with a single, named version. Avoid using the “duplicate” function if possible, as it can trigger the issue.
3. **Save and backup frequently** : Use the version history feature in MakeCode (under the project menu) to revert if things go missing. Also, consider exporting your project regularly as a .png or .mkcd file to have backups outside the editor.
4. **Reload carefully** : If you notice things missing after a reload, try undoing (Ctrl+Z) immediately or switching between blocks/JavaScript views, which sometimes restores them.
5. **Test in a stable environment** : Ensure you’re using the latest stable version of MakeCode (not beta), and try a different browser if you’re on Chrome/Edge—some users report fewer issues in Firefox.

If this persists or you can pinpoint steps to reproduce it (e.g., specific actions like deleting a block or adding a new sprite), it would be great to share more details on the official MakeCode forum threads discussing this, such as these ones for visibility and potential fixes from the devs:

- [Makecode Removing all SpriteKinds and varibles](https://forum.makecode.com/t/makecode-removing-all-spritekinds-and-varibles/34914)
- [Game Breaking and Variables being renamed?](https://forum.makecode.com/t/game-breaking-and-variables-being-renamed/35018)
- [Spritekind keeps disappearing](https://forum.makecode.com/t/spritekind-keeps-disappearing/38322)
- [Makecode bug ruining my game](https://forum.makecode.com/t/makecode-bug-ruining-my-game/37573)

---

_[View the full topic](https://forum.makecode.com/t/makecode-arcade-having-issues-with-variables-and-sprite-types/38735)._
