# Helpppppp emergencyyyyyyyyy

**URL:** <https://forum.makecode.com/t/helpppppp-emergencyyyyyyyyy/22410>\
**Category:** Help\
**Created:** [September 11, 2023, 6:09pm UTC](https://forum.makecode.com/t/helpppppp-emergencyyyyyyyyy/22410 "2023-09-11T18:09:04Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![annie](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@annie](https://forum.makecode.com/u/annie)\
**Post date:** [September 11, 2023, 6:09pm UTC](https://forum.makecode.com/t/helpppppp-emergencyyyyyyyyy/22410/1 "2023-09-11T18:09:04Z")

</div>

![Screenshot 2023-09-11 at 1.14.43 pm](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/2/2a508df741f3a222cd4d937c5158f0591f601d30.png)  
 ![Screenshot 2023-09-11 at 1.14.59 pm](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/3/3792bfe48f70d0a7af8e9187e63cc22ef8dc2788.png)

What do I do when I want the apple, the heart, the spaceship to destroy when it touches the blue line.

 ![Screenshot 2023-09-11 at 1.16.09 pm](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/3/302d708df30503f2ab9978c969ddfff76ccf0186.png)

This is my code so far, and it is not working! Help please!!!

---

<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:** [September 11, 2023, 6:10pm UTC](https://forum.makecode.com/t/helpppppp-emergencyyyyyyyyy/22410/2 "2023-09-11T18:10:14Z")

</div>

Can you send the link to the new version of your project? That should be working if you made the kind of the blue line = Wall.

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [September 11, 2023, 9:17pm UTC](https://forum.makecode.com/t/helpppppp-emergencyyyyyyyyy/22410/3 "2023-09-11T21:17:07Z")

</div>

idk if this information is correct but i think i remember reding on the forum that for some reason sprite.overlap doesn’t work on a sprite of dimensions 1x120 (x,y) so that might be the problem

---

<div class="post-metadata">

**Author:** ![annie](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@annie](https://forum.makecode.com/u/annie)\
**Post date:** [September 11, 2023, 9:25pm UTC](https://forum.makecode.com/t/helpppppp-emergencyyyyyyyyy/22410/4 "2023-09-11T21:25:08Z")

</div>

> **[Assessment](https://arcade.makecode.com/S97700-78891-24300-25285)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Here is the link, when it touches the blue line it decreases 2 heart when it is supposed to decrease 1

---

<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:** [September 11, 2023, 11:57pm UTC](https://forum.makecode.com/t/helpppppp-emergencyyyyyyyyy/22410/5 "2023-09-11T23:57:01Z")

</div>

This seems to be happening because you’re using tiles as the finish line (instead of a sprite) and it’s possible to overlap 2 or 3 tiles at a time.

---

<div class="post-metadata">

**Author:** ![annie](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@annie](https://forum.makecode.com/u/annie)\
**Post date:** [September 12, 2023, 12:22am UTC](https://forum.makecode.com/t/helpppppp-emergencyyyyyyyyy/22410/6 "2023-09-12T00:22:50Z")

</div>

It doesn’t work when I tried putting it as a sprite though.

---

<div class="post-metadata">

**Author:** ![annie](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@annie](https://forum.makecode.com/u/annie)\
**Post date:** [September 12, 2023, 12:22am UTC](https://forum.makecode.com/t/helpppppp-emergencyyyyyyyyy/22410/7 "2023-09-12T00:22:51Z")

</div>

Then what should I do?

---

<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:** [September 12, 2023, 12:25am UTC](https://forum.makecode.com/t/helpppppp-emergencyyyyyyyyy/22410/8 "2023-09-12T00:25:56Z")

</div>

Well, you could go with the method I offered originally. Also, you don’t really need to destroy the apples or hearts at the line. They’ll destroy automatically when they get off screen if you use auto destroy like you do on Bogey.

> [@Help on my code. EMERGENCY](https://forum.makecode.com/t/help-on-my-code-emergency/22337/7):
>
> OMG. THANKYOU SOOOOO MUCH. This is for my assessment task, it worked!!! Also what code should I use if I want to make that if you miss a spaceship it is the end of the game?

---

<div class="post-metadata">

**Author:** ![annie](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@annie](https://forum.makecode.com/u/annie)\
**Post date:** [September 12, 2023, 4:43pm UTC](https://forum.makecode.com/t/helpppppp-emergencyyyyyyyyy/22410/9 "2023-09-12T16:43:05Z")

</div>

I have another issue, which is when I touch the spaceship I lose 2 life, when I want it to lose 1 life. What should I do?

---

<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:** [September 12, 2023, 4:44pm UTC](https://forum.makecode.com/t/helpppppp-emergencyyyyyyyyy/22410/10 "2023-09-12T16:44:14Z")

</div>

That’s already been addressed in this forum. Please refer back to the original post.

---

<div class="post-metadata">

**Author:** ![annie](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@annie](https://forum.makecode.com/u/annie)\
**Post date:** [September 12, 2023, 4:44pm UTC](https://forum.makecode.com/t/helpppppp-emergencyyyyyyyyy/22410/11 "2023-09-12T16:44:20Z")

</div>

OMG, IT WORKED. THANKYOU SOOOOOOOOO MUCHHHHH. Thankyou for your helppppp

---

<div class="post-metadata">

**Author:** ![annie](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@annie](https://forum.makecode.com/u/annie)\
**Post date:** [September 12, 2023, 4:44pm UTC](https://forum.makecode.com/t/helpppppp-emergencyyyyyyyyy/22410/12 "2023-09-12T16:44:23Z")

</div>

Ok, sure. Let me just try. Thankyou so much for your help

---

<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:** [September 12, 2023, 4:44pm UTC](https://forum.makecode.com/t/helpppppp-emergencyyyyyyyyy/22410/13 "2023-09-12T16:44:54Z")

</div>

Awesome! Way to be persistent!

---

<div class="post-metadata">

**Author:** ![annie](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@annie](https://forum.makecode.com/u/annie)\
**Post date:** [September 12, 2023, 8:40pm UTC](https://forum.makecode.com/t/helpppppp-emergencyyyyyyyyy/22410/14 "2023-09-12T20:40:49Z")

</div>

Nevermind I got it fixed. Thankyou so much though!!!
