# How would I add sprites to the center of 2 tiles?

**URL:** <https://forum.makecode.com/t/how-would-i-add-sprites-to-the-center-of-2-tiles/18652>\
**Category:** Help\
**Created:** [March 20, 2023, 5:33pm UTC](https://forum.makecode.com/t/how-would-i-add-sprites-to-the-center-of-2-tiles/18652 "2023-03-20T17:33:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pikaahhh](https://avatars.discourse-cdn.com/v4/letter/p/f9ae1b/32.png) [@Pikaahhh](https://forum.makecode.com/u/Pikaahhh)\
**Post date:** [March 20, 2023, 5:33pm UTC](https://forum.makecode.com/t/how-would-i-add-sprites-to-the-center-of-2-tiles/18652/1 "2023-03-20T17:33:11Z")

</div>

> **[Super Mario Custom](https://arcade.makecode.com/S10812-67066-51822-28484)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Sonicblaston](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sonicblaston/32/19164_2.png) [@Sonicblaston](https://forum.makecode.com/u/Sonicblaston)\
**Post date:** [March 20, 2023, 6:01pm UTC](https://forum.makecode.com/t/how-would-i-add-sprites-to-the-center-of-2-tiles/18652/2 "2023-03-20T18:01:40Z")

</div>

I like how you are asking all the questions for your Mario game that I forgot to ask when I made my own

---

<div class="post-metadata">

**Author:** ![Sonicblaston](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sonicblaston/32/19164_2.png) [@Sonicblaston](https://forum.makecode.com/u/Sonicblaston)\
**Post date:** [March 20, 2023, 6:35pm UTC](https://forum.makecode.com/t/how-would-i-add-sprites-to-the-center-of-2-tiles/18652/3 "2023-03-20T18:35:31Z")

</div>

Btw you will have to remake the lucky block code. When you add the possibilty for becoming big mario. I have already tried it, and it doesn’t work with a two tile high ario

---

<div class="post-metadata">

**Author:** ![labfox29](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/labfox29/32/9252_2.png) [@labfox29](https://forum.makecode.com/u/labfox29)\
**Post date:** [March 22, 2023, 3:00pm UTC](https://forum.makecode.com/t/how-would-i-add-sprites-to-the-center-of-2-tiles/18652/4 "2023-03-22T15:00:42Z")

</div>

None of us going to talk about the bigger screen

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [March 22, 2023, 4:05pm UTC](https://forum.makecode.com/t/how-would-i-add-sprites-to-the-center-of-2-tiles/18652/5 "2023-03-22T16:05:32Z")

</div>

I’m not sure exactly where you are intending the sprites to be, but here’s an example of how you could spawn sprites on top of a few locations you set:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/c/cf2f187016bb023fdb085ec0ba5f735fc31e7773.png)

This would place a smiley face above all the ? blocks whenever you press B (if you want them to actually be in the tile, jkust don’t add the `tilemap location top of [value]` and replace it with just `value`). If you don’t want to make two tiles that look different, there are a couple ways to handle it – the easiest would just be to put them in to start with, run this code to spawn the sprites, and then at the end of the loop `set value to [blank tile]` or whatever should be behind it.

---

<div class="post-metadata">

**Author:** ![Sonicblaston](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sonicblaston/32/19164_2.png) [@Sonicblaston](https://forum.makecode.com/u/Sonicblaston)\
**Post date:** [March 23, 2023, 5:07pm UTC](https://forum.makecode.com/t/how-would-i-add-sprites-to-the-center-of-2-tiles/18652/6 "2023-03-23T17:07:14Z")

</div>

Since I have done research on how the first mario game works when I made my own game. I’m pretty sure you want the goombas to spawn between two tiles as in the real game. Is that what you’re trying to accomplish

_Poll ([view on site](https://forum.makecode.com/t/how-would-i-add-sprites-to-the-center-of-2-tiles/18652/6))_
