# Warrior of the Forgotten Gods -- WFG --

**URL:** <https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867>\
**Category:** Arcade\
**Created:** [November 2, 2026, 2:03am UTC](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867 "2026-11-02T02:03:04Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![Hulahoop](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hulahoop/32/37375_2.png) [@Hulahoop](https://forum.makecode.com/u/Hulahoop)\
**Post date:** [November 16, 2026, 1:53am UTC](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867/42 "2026-11-16T01:53:30Z")

</div>

I’m going to get rid of the animations before the slime spawns because it causes lots of trouble for me.

---

<div class="post-metadata">

**Author:** ![Hulahoop](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hulahoop/32/37375_2.png) [@Hulahoop](https://forum.makecode.com/u/Hulahoop)\
**Post date:** [November 16, 2026, 1:54am UTC](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867/43 "2026-11-16T01:54:40Z")

</div>

Sorry for the bunch of question.

How do I make it so that a bunch of sprites have separate status bars that get damaged? and make it so that if i hit 1 slime, it doesn’t hit a separate one somewhere else?

---

<div class="post-metadata">

**Author:** ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)\
**Post date:** [November 16, 2026, 1:59am UTC](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867/44 "2026-11-16T01:59:01Z")

</div>

> [@Hulahoop](#):
>
> How do I make it so that a bunch of sprites have separate status bars that get damaged?

Use Joey’s status bar extension. (Search for `status-bar` in the extensions page.)

> [@Hulahoop](#):
>
> and make it so that if i hit 1 slime, it doesn’t hit a separate one somewhere else?

Destroy the projectile as part of the `sprites.onOverlap()` event. Once the projectile is destroyed, it will not collide with another sprite. If you don’t want to destroy the projectile, then turn it into a ghost instead.

---

<div class="post-metadata">

**Author:** ![Hulahoop](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hulahoop/32/37375_2.png) [@Hulahoop](https://forum.makecode.com/u/Hulahoop)\
**Post date:** [November 16, 2026, 3:46am UTC](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867/45 "2026-11-16T03:46:17Z")

</div>

I am using the status bar extension yes. But the problem is. I have multiple slimes all over the map as the same type “slime” so when I hit one, it hits a different one for some reason. It’s not that it hits more than one when the slimes overlap each other, it’s that it hits a whole different slime because my code for some reason makes it so that when my swipe overlaps a slime, it makes the status bar go down -1 and also make it run an animation. But it doesn’t do it to the slime I’m hitting, and instead doing it to another slime. It’s so difficult since they are all the same sprite. I was also wondering if there is a more longer way of doing it so that it won’t be weird? Idk how @Bifrosty did it with his game. Ig I’m stupid or something.

---

<div class="post-metadata">

**Author:** ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)\
**Post date:** [November 16, 2026, 3:47am UTC](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867/46 "2026-11-16T03:47:37Z")

</div>

I’m guessing you’re using one of your `mySprite` variables. Make sure you’re using the “local” variables for the function (either `sprite` or `otherSprite` in the case of an `onOverlap()` handler). If you know which function is malfunctioning, the let us know which.

---

<div class="post-metadata">

**Author:** ![Hulahoop](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hulahoop/32/37375_2.png) [@Hulahoop](https://forum.makecode.com/u/Hulahoop)\
**Post date:** [November 16, 2026, 10:21pm UTC](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867/47 "2026-11-16T22:21:49Z")

</div>

Ya I used the (other sprite) but idk. I’ll try it again today

---

<div class="post-metadata">

**Author:** ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Post date:** [November 16, 2026, 10:43pm UTC](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867/48 "2026-11-16T22:43:12Z")

</div>

well there are many ways, I’d recommend looking it up before finding what you like. I would use [Celeste’s way](https://github.com/NoelFB/Celeste/blob/master/Source/Player/Player.cs)

---

<div class="post-metadata">

**Author:** ![TheGooberEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thegooberearth/32/36693_2.png) [@TheGooberEarth](https://forum.makecode.com/u/TheGooberEarth)\
**Post date:** [November 19, 2026, 5:47am UTC](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867/49 "2026-11-19T05:47:29Z")

</div>

Oh ok I’ll probably make one over the weekend

---

<div class="post-metadata">

**Author:** ![Hulahoop](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hulahoop/32/37375_2.png) [@Hulahoop](https://forum.makecode.com/u/Hulahoop)\
**Post date:** [November 20, 2026, 10:03pm UTC](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867/50 "2026-11-20T22:03:51Z")

</div>

I’m sorry everyone that I hadn’t worked in a few days. I’ll get back to it during the weekend hopefully.

---

<div class="post-metadata">

**Author:** ![Hulahoop](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hulahoop/32/37375_2.png) [@Hulahoop](https://forum.makecode.com/u/Hulahoop)\
**Post date:** [November 22, 2026, 3:41am UTC](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867/51 "2026-11-22T03:41:12Z")

</div>

I’m so happy right now! 🤩

I managed to fix the attacking thingy! woo!

---

<div class="post-metadata">

**Author:** ![Hulahoop](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hulahoop/32/37375_2.png) [@Hulahoop](https://forum.makecode.com/u/Hulahoop)\
**Post date:** [November 22, 2026, 3:53am UTC](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867/52 "2026-11-22T03:53:31Z")

</div>

@WoofWoof this time it’s a bug.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/5/3/537312c297ee823065a9e86c422c4de10694b8c3.png)

I made it so when a projectile overlaps me it will do something:(have’t done what it does)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/8/3/83b2b41a6a2f634d4e8dd352c38534d1a4e4ff3e.png)

But then it turns into a bug in this area:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/2/7/27652e5e4dc9ae794e8cad512ea5887d564fe80b.png)

I can’t quite grasp why it’s not working. If you need any more information please ask. but don’t ask for the game link? (I don’t want people playing it yet.)

---

<div class="post-metadata">

**Author:** ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Post date:** [November 22, 2026, 8:19pm UTC](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867/53 "2026-11-22T20:19:31Z")

</div>

I cant find the issue from the given snippets, the most likely culpret from what I can see is mySprite.

---

<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:** [November 22, 2026, 8:20pm UTC](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867/54 "2026-11-22T20:20:25Z")

</div>

Any chance you’re destroying the sprite before that 500 ms pause completes? I don’t have enough information to find the issue. Does removing that overlap code fix the error?

---

<div class="post-metadata">

**Author:** ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Post date:** [November 22, 2026, 8:22pm UTC](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867/55 "2026-11-22T20:22:02Z")

</div>

@Hulahoop I made it in Makecode (with Claude to make sure it was accurate), so you don’t have to find the code yourelf

> **[Variable Jump Height](https://arcade.makecode.com/57743-65251-74855-66894)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Hulahoop](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hulahoop/32/37375_2.png) [@Hulahoop](https://forum.makecode.com/u/Hulahoop)\
**Post date:** [November 23, 2026, 1:58am UTC](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867/56 "2026-11-23T01:58:27Z")

</div>

Do you mind if I just copy this into my code?

Also can you explain what all of it does?

Thanks!!

---

<div class="post-metadata">

**Author:** ![Hulahoop](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hulahoop/32/37375_2.png) [@Hulahoop](https://forum.makecode.com/u/Hulahoop)\
**Post date:** [November 23, 2026, 1:58am UTC](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867/57 "2026-11-23T01:58:35Z")

</div>

Yes. When I don’t include the overlap code, it works.

Here:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/d/a/da964e6ad853a0035530e03b4f776c328f9bdef2.png)

I destroyed the attackswipe and then created it again. If that answers your first question?

---

<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:** [November 23, 2026, 9:49pm UTC](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867/58 "2026-11-23T21:49:39Z")

</div>

Well the error message is saying that there is some sprite facing left or sprite facing right code that is the issue. I don’t see how the overlap code could cause that, but try wrapping the whole overlap if-else block in something like

If \<\<(slime ball 1) and (slime ball 2)\> and (mySprite)\> …

This will check that the slimes and the player sprite both exist before running the overlap code.

---

<div class="post-metadata">

**Author:** ![Hulahoop](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hulahoop/32/37375_2.png) [@Hulahoop](https://forum.makecode.com/u/Hulahoop)\
**Post date:** [November 24, 2026, 12:08am UTC](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867/59 "2026-11-24T00:08:15Z")

</div>

It works! No wonder they call you the scientist! Thanks so much @WoofWoof!

---

<div class="post-metadata">

**Author:** ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Post date:** [November 24, 2026, 12:08am UTC](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867/60 "2026-11-24T00:08:20Z")

</div>

did you know you can replace \< variable = \> with \< variable \>? and \< variable = \> with \< not \>? It just bothers me, I’m not trying to sound mean.

---

<div class="post-metadata">

**Author:** ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Post date:** [November 24, 2026, 12:08am UTC](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867/61 "2026-11-24T00:08:28Z")

</div>

I mainly made it to be copied off of (like a lot of my stuff). Im also bad at explaining and I will confess I used AI to explain it (but I reworded stuff).

jumpWindowEnd stores a timestamp (in milliseconds) marking when the “extended jump” period runs out. It starts at 0, meaning no jump is active.

On jump pressed:

- Sets vertical velocity to -130 (negative is up).
- Makes a 200 ms “jump window” by setting jumpWindowEnd to the current time plus 200.

Every Frame:

- Gravity is ay. Normally it’s 800 (heavy). But near the peak of the jump, when vertical speed is small (under 60 in either direction) and A is held, gravity drops to 500. This gives a floaty “hang time” at the apex, a common platformer feel trick.
- If A is still held and the player hasn’t bonked their head on a ceiling tile, upward velocity is held at -130 (Math.min keeps it from being any slower upward than that). This effectively cancels gravity for those 200 ms, so the jump keeps rising.
- If A is released, or the head hits a ceiling, the window is closed immediately (jumpWindowEnd = 0), and gravity takes over.

[Previous page](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867.md?page=2)

[Next page](https://forum.makecode.com/t/warrior-of-the-forgotten-gods-wfg/46867.md?page=4)
