# A series of extremely maddening (but simple) problems

**URL:** <https://forum.makecode.com/t/a-series-of-extremely-maddening-but-simple-problems/27551>\
**Category:** Game Design\
**Created:** [March 7, 2024, 7:05pm UTC](https://forum.makecode.com/t/a-series-of-extremely-maddening-but-simple-problems/27551 "2024-03-07T19:05:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Far\_Flame](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/far_flame/32/15042_2.png) [@Far\_Flame](https://forum.makecode.com/u/Far_Flame)\
**Post date:** [March 7, 2024, 7:05pm UTC](https://forum.makecode.com/t/a-series-of-extremely-maddening-but-simple-problems/27551/1 "2024-03-07T19:05:10Z")

</div>

If you were making a game, and everything was working fine except ONE SPECIFIC AREA, LIKE, FOR EXAMPLE, ENEMIES, how would you react? You would be somewhat annoyed, right?

Here is a list of problems:

1. Getting enemies to follow you
2. Getting enemies to be constantly accelerated downwards
3. Getting the attack (spacebar) to ACTUALLY WORK (and flip based on your image)
4. Making a fully fledged bossfight

Now, I can’t solve any of these problems, because I SUCK AT CODING!

But you can!

> **[CS Project](https://arcade.makecode.com/S62484-57602-82435-84143)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

(also, please ignore the poptart at the beginning. WIP)

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [March 8, 2024, 6:09pm UTC](https://forum.makecode.com/t/a-series-of-extremely-maddening-but-simple-problems/27551/2 "2024-03-08T18:09:37Z")

</div>

1. Set (sprite) follow (othersprite)  
There are some other extensions for smarter following enemies if you need them.
2. Set (sprite) [AccelerationY] (1000)  
The bigger the last number, the faster they fall

These are the simplest solutions to the first two problems, the other ones are obviously more complicated. The first solution won’t let enemies navigate over/around walls, they just constantly move towards the player/whatever othersprite you put in there. Hope this helps!

---

<div class="post-metadata">

**Author:** ![Far\_Flame](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/far_flame/32/15042_2.png) [@Far\_Flame](https://forum.makecode.com/u/Far_Flame)\
**Post date:** [March 8, 2024, 10:55pm UTC](https://forum.makecode.com/t/a-series-of-extremely-maddening-but-simple-problems/27551/3 "2024-03-08T22:55:23Z")

</div>

> [@Far\_Flame](#):
>
> [https://arcade.makecode.com/S62484-57602-82435-84143](https://arcade.makecode.com/S62484-57602-82435-84143)

Thank you!

Unfortunately,  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/b/b7d69f8f609c8f2b89428e86b5417169d8adad1b.png)  
(still not working)

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [March 11, 2024, 3:40pm UTC](https://forum.makecode.com/t/a-series-of-extremely-maddening-but-simple-problems/27551/4 "2024-03-11T15:40:18Z")

</div>

I see your problem! When you do anything like “set (sprite)” it only effects the most recently created one of that sprite, not all of them. Try putting it inside the for loops right after the code that creates the sprites, so that every sprite is effected!

---

<div class="post-metadata">

**Author:** ![Far\_Flame](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/far_flame/32/15042_2.png) [@Far\_Flame](https://forum.makecode.com/u/Far_Flame)\
**Post date:** [March 13, 2024, 12:10am UTC](https://forum.makecode.com/t/a-series-of-extremely-maddening-but-simple-problems/27551/5 "2024-03-13T00:10:50Z")

</div>

Thanks!

I solved all of these problems, but now I can’t figure for the life of me how to  
A) get the game to acknowledge that the boss’s status bar (EnemyHealth) is 0  
B) find a way to flip the image of my sprite when it is attacking facing the other direction
