# Newbie: Issues with Sprite creation on PyBadge

**URL:** <https://forum.makecode.com/t/newbie-issues-with-sprite-creation-on-pybadge/21466>\
**Category:** Arcade\
**Created:** [July 24, 2023, 10:59pm UTC](https://forum.makecode.com/t/newbie-issues-with-sprite-creation-on-pybadge/21466 "2023-07-24T22:59:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DragonTamer](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@DragonTamer](https://forum.makecode.com/u/DragonTamer)\
**Post date:** [July 24, 2023, 10:59pm UTC](https://forum.makecode.com/t/newbie-issues-with-sprite-creation-on-pybadge/21466/1 "2023-07-24T22:59:01Z")

</div>

Hello,  
My son has started using MakeCode to make his own game. He is collecting coins, which he has placed on his tilemap. On loading, he sets up the sprites with the and places them. This is fine in the simulator, but he runs out of memory on the PyBadge.  
I have removed maybe half of the coin locations from the tilemap, but it’s still running out of memory. Is there a way to load the coins when they would appear on the screen? Or to load the coins in a part of the tilemap at a time?

> **[Moon man 2.0 debug](https://arcade.makecode.com/S45011-28568-25222-72650)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![jnegative](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jnegative/32/10173_2.png) [@jnegative](https://forum.makecode.com/u/jnegative)\
**Post date:** [July 24, 2023, 11:49pm UTC](https://forum.makecode.com/t/newbie-issues-with-sprite-creation-on-pybadge/21466/2 "2023-07-24T23:49:27Z")

</div>

I checked out your code, your tilemap is huge! Way too many coin sprites for one tilemap:  
 ![Screenshot 2023-07-24 7.34.06 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/db6b1fb8544e4744e75e3c790c10ba34cdb6ad94.png)  
179 sprites! That’ll overload a pybadge. Try having Super\_plate\_man travel to different (smaller) tilemaps. I hope this helps!

---

<div class="post-metadata">

**Author:** ![jnegative](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jnegative/32/10173_2.png) [@jnegative](https://forum.makecode.com/u/jnegative)\
**Post date:** [July 25, 2023, 4:56pm UTC](https://forum.makecode.com/t/newbie-issues-with-sprite-creation-on-pybadge/21466/3 "2023-07-25T16:56:45Z")

</div>

I know how long it takes to make a tilemap that big, so if you still want to use it, you could make the coins tiles instead of sprites!
