# Help wiht Enemies

**URL:** <https://forum.makecode.com/t/help-wiht-enemies/22110>\
**Category:** Help\
**Created:** [August 28, 2023, 4:35pm UTC](https://forum.makecode.com/t/help-wiht-enemies/22110 "2023-08-28T16:35:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SkillMapster430](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/skillmapster430/32/10497_2.png) [@SkillMapster430](https://forum.makecode.com/u/SkillMapster430)\
**Post date:** [August 28, 2023, 4:35pm UTC](https://forum.makecode.com/t/help-wiht-enemies/22110/1 "2023-08-28T16:35:50Z")

</div>

> **[Shark Attack Reborn](https://arcade.makecode.com/23804-18279-22056-22605)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

I’m working on a game that uses the shark attack skill map.  
I’m trying to make it so that at a specific score, a submarine will come out form the other side.  
I need help for that, any help is appreciated!

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [August 28, 2023, 4:49pm UTC](https://forum.makecode.com/t/help-wiht-enemies/22110/2 "2023-08-28T16:49:54Z")

</div>

On game update if score \> x then create submarine  
Set sub position to player position but change its x pos so it’s off screen  
Set its vx to positive? (might be negative) so it moves towards the player

---

<div class="post-metadata">

**Author:** ![SkillMapster430](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/skillmapster430/32/10497_2.png) [@SkillMapster430](https://forum.makecode.com/u/SkillMapster430)\
**Post date:** [August 28, 2023, 9:02pm UTC](https://forum.makecode.com/t/help-wiht-enemies/22110/3 "2023-08-28T21:02:42Z")

</div>

Thanks!

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [August 28, 2023, 9:54pm UTC](https://forum.makecode.com/t/help-wiht-enemies/22110/4 "2023-08-28T21:54:45Z")

</div>

Make sure to stop the game update with a variable so it doesn’t repeat and spawn a million sprites

---

<div class="post-metadata">

**Author:** ![SkillMapster430](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/skillmapster430/32/10497_2.png) [@SkillMapster430](https://forum.makecode.com/u/SkillMapster430)\
**Post date:** [August 28, 2023, 9:58pm UTC](https://forum.makecode.com/t/help-wiht-enemies/22110/5 "2023-08-28T21:58:01Z")

</div>

I made invisible entities so they will delete the other entities after the leave the screen
