# Help and Questions

**URL:** <https://forum.makecode.com/t/help-and-questions/1335>\
**Category:** Help\
**Created:** [March 5, 2020, 10:48pm UTC](https://forum.makecode.com/t/help-and-questions/1335 "2020-03-05T22:48:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [March 5, 2020, 10:48pm UTC](https://forum.makecode.com/t/help-and-questions/1335/1 "2020-03-05T22:48:55Z")

</div>

Ask questions, debug your code, and help others.

Some general guidelines:

- Include as much information as possible: screenshots, code snippets, or even a link to your game
- Search through the forums to see if your question has been answered before.
- Feel free to jump in and share your expertise if you know the answer to someone else’s question!

---

<div class="post-metadata">

**Author:** ![okrutax](https://avatars.discourse-cdn.com/v4/letter/o/e9c0ed/32.png) [@okrutax](https://forum.makecode.com/u/okrutax)\
**Post date:** [March 10, 2020, 5:49pm UTC](https://forum.makecode.com/t/help-and-questions/1335/2 "2020-03-10T17:49:42Z")

</div>

Hello Richard!

Could you help me with my question on this topic:

> [@The PXT module for STM32 board based on freertos](https://forum.makecode.com/t/the-pxt-module-for-stm32-board-based-on-freertos/1323):
>
> Hello, I am trying to understand if I could create a PXT module for STM32 microcontroller. The application of STM32 board based on freertos. I would like to know if there are any examples of using CODAL with freertos to create PXT module ? And if it is possible ? For example how it was done by Lego for their operating system: Please give me some advice! Thanks!

---

<div class="post-metadata">

**Author:** ![MiniNelson](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@MiniNelson](https://forum.makecode.com/u/MiniNelson)\
**Post date:** [April 10, 2020, 3:42am UTC](https://forum.makecode.com/t/help-and-questions/1335/3 "2020-04-10T03:42:59Z")

</div>

Hello Richard!

In my code when I set a certain sprite to another sprite, instead of going to the location of the second sprite the first sprite will only go to one set location. Every single time. I have tried to set the location of the first sprite to a different sprite, however, it still goes to on set spot.

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [April 10, 2020, 4:28pm UTC](https://forum.makecode.com/t/help-and-questions/1335/4 "2020-04-10T16:28:46Z")

</div>

Hi @MiniNelson! Could you share a link to your code? Here’s a gif showing how to do that:

 ![2020-03-23 09.17.36](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/b33ee0cc63a7c343c23e4b6dd8665405eae8f852.gif)

---

<div class="post-metadata">

**Author:** ![MiniNelson](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@MiniNelson](https://forum.makecode.com/u/MiniNelson)\
**Post date:** [April 13, 2020, 5:38pm UTC](https://forum.makecode.com/t/help-and-questions/1335/5 "2020-04-13T17:38:45Z")

</div>

Hi @richard!  
Here’s the link to the code - [https://makecode.com/\_JHvPhcKXVXLV](https://makecode.com/_JHvPhcKXVXLV)

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [April 13, 2020, 5:44pm UTC](https://forum.makecode.com/t/help-and-questions/1335/6 "2020-04-13T17:44:24Z")

</div>

oh wow, that’s a lot of code! What part of the code is buggy? Could you post a screenshot of just that snippet?

---

<div class="post-metadata">

**Author:** ![MiniNelson](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@MiniNelson](https://forum.makecode.com/u/MiniNelson)\
**Post date:** [April 15, 2020, 5:48pm UTC](https://forum.makecode.com/t/help-and-questions/1335/7 "2020-04-15T17:48:35Z")

</div>

Sure.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/c44fbc309b9e718f6f3f7a5619eb5817fe39e573.png)  
When I “set projectile2 to projectile from ALIEN4 with vx(0) and yx(0)” and then “set projectile2 to sprite of kind Projectile2.” Instead of setting projectile2 from ALIEN4 it sets projectile2 at a set spot in the middle of the screen.

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [April 15, 2020, 6:03pm UTC](https://forum.makecode.com/t/help-and-questions/1335/8 "2020-04-15T18:03:33Z")

</div>

Thanks! That code is creating two different sprites, one that is a transparent projectile on top of “ALIEN4” and another that is a transparent sprite in the middle of the screen. The second one is overriding the first, which is why you’re seeing it in the middle of the screen.

I think you want to use the “set kind” block instead of “create sprite”, like this:

 ![Screen Shot 2020-04-15 at 10.59.47 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/1376de0cdecb1a211f006113d4b09eb8a4a2f6d9.png)

You’ll find the block in the “overlaps” section of the block category.

---

<div class="post-metadata">

**Author:** ![MiniNelson](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@MiniNelson](https://forum.makecode.com/u/MiniNelson)\
**Post date:** [April 16, 2020, 6:04pm UTC](https://forum.makecode.com/t/help-and-questions/1335/9 "2020-04-16T18:04:46Z")

</div>

Thanks! That fixed the problem I was having.

---

<div class="post-metadata">

**Author:** ![bee](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@bee](https://forum.makecode.com/u/bee)\
**Post date:** [October 15, 2020, 1:41am UTC](https://forum.makecode.com/t/help-and-questions/1335/11 "2020-10-15T01:41:45Z")

</div>

Hi, I want to increase the tempo in a game as the game progresses, to add some suspense. I can’t seem to get the “change tempo by xx bpm” to work. In this iteration, I’ve got it in a logic block, but I’ve tried it in “on start”, “on game update”, “on overlap”. I just want the tempo to change!

Here’s the link: [https://makecode.com/\_M4PXCkeWwf1y](https://makecode.com/_M4PXCkeWwf1y)  
Thanks

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [October 20, 2020, 7:19pm UTC](https://forum.makecode.com/t/help-and-questions/1335/12 "2020-10-20T19:19:29Z")

</div>

@bee, you need to use the tempo block in your playMelody. right now it’s hardcoded to 200

 ![2020-10-20 12.17.41](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/8/8dfb23bb365bb0143354c5678c9ea84b0d6ab418.gif)

---

<div class="post-metadata">

**Author:** ![bee](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@bee](https://forum.makecode.com/u/bee)\
**Post date:** [October 20, 2020, 8:21pm UTC](https://forum.makecode.com/t/help-and-questions/1335/13 "2020-10-20T20:21:19Z")

</div>

Thank you so much! That’s been bugging me for weeks.

---

<div class="post-metadata">

**Author:** ![kingcobralasersnakes](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@kingcobralasersnakes](https://forum.makecode.com/u/kingcobralasersnakes)\
**Post date:** [March 22, 2021, 2:38am UTC](https://forum.makecode.com/t/help-and-questions/1335/16 "2021-03-22T02:38:16Z")

</div>

I want to make enemies go from the top to the bottom, @richard. link: [https://makecode.com/\_1vg05UdCUFc2](https://makecode.com/_1vg05UdCUFc2)

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [March 22, 2021, 4:51pm UTC](https://forum.makecode.com/t/help-and-questions/1335/17 "2021-03-22T16:51:06Z")

</div>

@kingcobralasersnakes try something like this:

 ![Screen Shot 2021-03-22 at 9.50.19 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/a/afdb3fc4f5156f41cc32f76a3c0fca4b9fb3a90a.png)

---

<div class="post-metadata">

**Author:** ![kingcobralasersnakes](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@kingcobralasersnakes](https://forum.makecode.com/u/kingcobralasersnakes)\
**Post date:** [March 25, 2021, 12:24am UTC](https://forum.makecode.com/t/help-and-questions/1335/18 "2021-03-25T00:24:53Z")

</div>

thanks!

---

<div class="post-metadata">

**Author:** ![kingcobralasersnakes](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@kingcobralasersnakes](https://forum.makecode.com/u/kingcobralasersnakes)\
**Post date:** [April 2, 2021, 4:07pm UTC](https://forum.makecode.com/t/help-and-questions/1335/23 "2021-04-02T16:07:17Z")

</div>

hello @richard ! The code won’t work.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/4/4eaf4948d335194cf70a89b47782f6fd313d4f7a.png)[https://makecode.com/\_ejEHWbTTE4qH](https://makecode.com/_ejEHWbTTE4qH)

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [April 2, 2021, 4:15pm UTC](https://forum.makecode.com/t/help-and-questions/1335/24 "2021-04-02T16:15:30Z")

</div>

@kingcobralasersnakes  
The “2” you have there is actually a text block and not a number. If you grab a number block from the math category and place it over the “2”, it should work!

---

<div class="post-metadata">

**Author:** ![kingcobralasersnakes](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@kingcobralasersnakes](https://forum.makecode.com/u/kingcobralasersnakes)\
**Post date:** [April 2, 2021, 7:14pm UTC](https://forum.makecode.com/t/help-and-questions/1335/25 "2021-04-02T19:14:34Z")

</div>

I see thanks!

---

<div class="post-metadata">

**Author:** ![kingcobralasersnakes](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@kingcobralasersnakes](https://forum.makecode.com/u/kingcobralasersnakes)\
**Post date:** [April 4, 2021, 11:47pm UTC](https://forum.makecode.com/t/help-and-questions/1335/26 "2021-04-04T23:47:02Z")

</div>

sorry a better image is this:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/3/33d0f637a7cc02bb76f8aac5d178a0c3b56fc920.png)  
focus on the if “image =” part

---

<div class="post-metadata">

**Author:** ![kingcobralasersnakes](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@kingcobralasersnakes](https://forum.makecode.com/u/kingcobralasersnakes)\
**Post date:** [April 4, 2021, 11:47pm UTC](https://forum.makecode.com/t/help-and-questions/1335/27 "2021-04-04T23:47:54Z")

</div>

this won’t work:

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

[Next page](https://forum.makecode.com/t/help-and-questions/1335.md?page=2)
