# Overlap & add points

**URL:** <https://forum.makecode.com/t/overlap-add-points/17402>\
**Category:** Help\
**Created:** [January 13, 2023, 4:56pm UTC](https://forum.makecode.com/t/overlap-add-points/17402 "2023-01-13T16:56:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BruceSchwa](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@BruceSchwa](https://forum.makecode.com/u/BruceSchwa)\
**Post date:** [January 13, 2023, 4:56pm UTC](https://forum.makecode.com/t/overlap-add-points/17402/1 "2023-01-13T16:56:28Z")

</div>

Still new to Arcade, but really trying to learn. My student has made this game and she wants it to collect the trash and gain point. Thanks so much! [https://arcade.makecode.com/S87728-89118-56190-97993](https://arcade.makecode.com/S87728-89118-56190-97993)

---

<div class="post-metadata">

**Author:** ![KIKIvsIT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kikivsit/32/10492_2.png) [@KIKIvsIT](https://forum.makecode.com/u/KIKIvsIT)\
**Post date:** [January 13, 2023, 5:10pm UTC](https://forum.makecode.com/t/overlap-add-points/17402/2 "2023-01-13T17:10:23Z")

</div>

She’s on the right track…but right now, she’s using a tilemap as the background, and that’s easier to set-up, but it’s harder to code the “clean-up”. Using sprites is much easier to clean-up, but a little more work to set-up and it lags.

I see that she created a function to lay out trash as sprites. If she were to position those randomly, she could use the overlap container she’s trying now:  
 ![Screenshot by Dropbox Capture](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/da04a7b938fdf48e008cc1ad21bea00496e83b6d.png)

![Screenshot by Dropbox Capture](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/ecbab9a3f3c67dc851997eabea8fbece8ffeebd4.png)

However, the game will be really slow with all of those sprites floating around.

If she wants to use the tilemap, she’ll need as many tile overlap containers as she has types of sprites:  
 ![Screenshot by Dropbox Capture](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/2/29632cfd30fb237249b07d1c18d44bdf1d9d9ced.png)

She’ll need a new tilemap for each level, but the game should perform much better.

Hope that helps!

~Kiki
