# Help needed remixes allowed

**URL:** <https://forum.makecode.com/t/help-needed-remixes-allowed/19697>\
**Category:** Arcade\
**Created:** [May 5, 2023, 3:41pm UTC](https://forum.makecode.com/t/help-needed-remixes-allowed/19697 "2023-05-05T15:41:12Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![pigpigeons\_r\_c00l](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pigpigeons_r_c00l/32/12313_2.png) [@pigpigeons\_r\_c00l](https://forum.makecode.com/u/pigpigeons_r_c00l)\
**Post date:** [May 5, 2023, 3:41pm UTC](https://forum.makecode.com/t/help-needed-remixes-allowed/19697/1 "2023-05-05T15:41:12Z")

</div>

need help figuring out bug how to get rid of  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/777c6c773aefad62acb2ab62f0fa29dd090c6097.png)  
why is this ghost not moving but in a random spot and i also did not make it spawn until 60000ms (one minute)

---

<div class="post-metadata">

**Author:** ![Blobbey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blobbey/32/20831_2.png) [@Blobbey](https://forum.makecode.com/u/Blobbey)\
**Post date:** [May 5, 2023, 4:14pm UTC](https://forum.makecode.com/t/help-needed-remixes-allowed/19697/2 "2023-05-05T16:14:04Z")

</div>

Are you using an `on game update every [number] ms` event block? The event block will activate the moment the game starts, as that is the first game update. Then it will activate after the number of milliseconds you set. Also, if you post the game link, it would be a little easier to help. 🙂

---

<div class="post-metadata">

**Author:** ![pigpigeons\_r\_c00l](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pigpigeons_r_c00l/32/12313_2.png) [@pigpigeons\_r\_c00l](https://forum.makecode.com/u/pigpigeons_r_c00l)\
**Post date:** [May 8, 2023, 5:10pm UTC](https://forum.makecode.com/t/help-needed-remixes-allowed/19697/3 "2023-05-08T17:10:39Z")

</div>

yes i am also here is the code

> **[pac war - Copy](https://arcade.makecode.com/S55651-88575-20500-33735)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

also

_Poll ([view on site](https://forum.makecode.com/t/help-needed-remixes-allowed/19697/3))_

---

<div class="post-metadata">

**Author:** ![Blobbey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blobbey/32/20831_2.png) [@Blobbey](https://forum.makecode.com/u/Blobbey)\
**Post date:** [May 8, 2023, 5:35pm UTC](https://forum.makecode.com/t/help-needed-remixes-allowed/19697/4 "2023-05-08T17:35:42Z")

</div>

Okay, I think the ghost isn’t moving because:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/4/45edeccaa08b3a0c58235d1a71d5e41d27c65bba.png)  
You’re changing the `[picture]` variable once in the `game update` block, and again in the function that is called directly after:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/0/083c3c35d771dc82291ed0bf53173b2f9ba3d615.png)  
Because of this, the `[picture]` variable is equal to two when the sprite is spawned, and so the `follow` block doesn’t get declared.  
You could fix this by 1) removing one of the variable changes:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/b/b50503bf9322860381939fd2cf48b5a1d3016aef.png)  
or 2) you could just declare the `follow` block in each of the `else if` statements:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/76baa1069c844cab59ee02d54602808a150fbb90.png)

---

<div class="post-metadata">

**Author:** ![pigpigeons\_r\_c00l](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pigpigeons_r_c00l/32/12313_2.png) [@pigpigeons\_r\_c00l](https://forum.makecode.com/u/pigpigeons_r_c00l)\
**Post date:** [May 9, 2023, 4:22pm UTC](https://forum.makecode.com/t/help-needed-remixes-allowed/19697/5 "2023-05-09T16:22:42Z")

</div>

also now i need help with making the projectile get shot. ↑↓→←

---

<div class="post-metadata">

**Author:** ![pigpigeons\_r\_c00l](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pigpigeons_r_c00l/32/12313_2.png) [@pigpigeons\_r\_c00l](https://forum.makecode.com/u/pigpigeons_r_c00l)\
**Post date:** [May 9, 2023, 4:24pm UTC](https://forum.makecode.com/t/help-needed-remixes-allowed/19697/6 "2023-05-09T16:24:23Z")

</div>

it moves now just spawns before 60000 ms

---

<div class="post-metadata">

**Author:** ![pigpigeons\_r\_c00l](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pigpigeons_r_c00l/32/12313_2.png) [@pigpigeons\_r\_c00l](https://forum.makecode.com/u/pigpigeons_r_c00l)\
**Post date:** [May 9, 2023, 4:44pm UTC](https://forum.makecode.com/t/help-needed-remixes-allowed/19697/7 "2023-05-09T16:44:17Z")

</div>

here is my existing code for that but also i hadent finished some others. like the doors to teleport for the ghosts

---

<div class="post-metadata">

**Author:** ![Blobbey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blobbey/32/20831_2.png) [@Blobbey](https://forum.makecode.com/u/Blobbey)\
**Post date:** [May 9, 2023, 4:47pm UTC](https://forum.makecode.com/t/help-needed-remixes-allowed/19697/8 "2023-05-09T16:47:59Z")

</div>

Yeah, you might have to use a variable to keep it from spawning immediately.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/982faabf98cf6136165fc4a815e44596900616ba.png)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/c/cb6279176735beee2432a90307dfc1281882c3dd.png)

---

<div class="post-metadata">

**Author:** ![pigpigeons\_r\_c00l](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pigpigeons_r_c00l/32/12313_2.png) [@pigpigeons\_r\_c00l](https://forum.makecode.com/u/pigpigeons_r_c00l)\
**Post date:** [May 10, 2023, 5:11pm UTC](https://forum.makecode.com/t/help-needed-remixes-allowed/19697/9 "2023-05-10T17:11:55Z")

</div>

thanks

---

<div class="post-metadata">

**Author:** ![pigpigeons\_r\_c00l](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pigpigeons_r_c00l/32/12313_2.png) [@pigpigeons\_r\_c00l](https://forum.makecode.com/u/pigpigeons_r_c00l)\
**Post date:** [May 11, 2023, 8:46pm UTC](https://forum.makecode.com/t/help-needed-remixes-allowed/19697/10 "2023-05-11T20:46:49Z")

</div>

i tried thatt but its still spawning early

> **[pac war - Copy](https://arcade.makecode.com/S55651-88575-20500-33735)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Blobbey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blobbey/32/20831_2.png) [@Blobbey](https://forum.makecode.com/u/Blobbey)\
**Post date:** [May 12, 2023, 5:14pm UTC](https://forum.makecode.com/t/help-needed-remixes-allowed/19697/11 "2023-05-12T17:14:59Z")

</div>

I think that’s because you’re changing the variable _before_ you do the `if` statement. Try moving the `change gum by 1` variable to the end of the `game update` block.

---

<div class="post-metadata">

**Author:** ![pigpigeons\_r\_c00l](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pigpigeons_r_c00l/32/12313_2.png) [@pigpigeons\_r\_c00l](https://forum.makecode.com/u/pigpigeons_r_c00l)\
**Post date:** [May 15, 2023, 4:57pm UTC](https://forum.makecode.com/t/help-needed-remixes-allowed/19697/12 "2023-05-15T16:57:31Z")

</div>

thanks
