# I need help making a game

**URL:** <https://forum.makecode.com/t/i-need-help-making-a-game/36982>\
**Category:** Help\
**Created:** [May 29, 2025, 5:16pm UTC](https://forum.makecode.com/t/i-need-help-making-a-game/36982 "2025-05-29T17:16:25Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noob1235](https://avatars.discourse-cdn.com/v4/letter/n/e56c9b/32.png) [@Noob1235](https://forum.makecode.com/u/Noob1235)\
**Post date:** [May 29, 2025, 5:16pm UTC](https://forum.makecode.com/t/i-need-help-making-a-game/36982/1 "2025-05-29T17:16:25Z")

</div>

I am trying to make a game like stick-man hook. It is a game where you move around a map, but you can only move if you are next to a crcle thingy, and then you grab on with your grapple hook, and then you can swing left and right.  
 ![Stickman Hook Unblocked game - Chrome Web Store](https://lh3.googleusercontent.com/3zgFW6aggi06GkMXbWQbIRgM3kWrTecS6o5fUA_uajhrps2XrCJ0cy-vu4K6CvQdvw-avMIx1FqIxQ8p29JeBoq55sU=s1280-w1280-h800)  
I am using @BLADEr soft body extension, link here: [https://bladebaillio.github.io/soft-body-extension/](https://bladebaillio.github.io/soft-body-extension/)  
I think I get how to make it, but I need a little help with the extension and the gravity to go with it. Can someone help me? If you want to try stick-man hook, the link is here:[https://stickmanhookgame.org/](https://stickmanhookgame.org/) (It might be blocked on school Chromebooks)

---

<div class="post-metadata">

**Author:** ![Noob1235](https://avatars.discourse-cdn.com/v4/letter/n/e56c9b/32.png) [@Noob1235](https://forum.makecode.com/u/Noob1235)\
**Post date:** [May 29, 2025, 6:12pm UTC](https://forum.makecode.com/t/i-need-help-making-a-game/36982/2 "2025-05-29T18:12:33Z")

</div>

I want to make it so the rope will stay the same length, not bend, and create when you press A and destroy when A is released.

---

<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:** [May 30, 2025, 2:45am UTC](https://forum.makecode.com/t/i-need-help-making-a-game/36982/3 "2025-05-30T02:45:18Z")

</div>

This isn’t a game you want the soft body extension for. What you need to be doing is drawing a line from the player to the hang spot, and handling the rest with math. You can draw a line on the background image or use the Sprite Util extension to draw to a different layer of the screen. I think how I would do this is by finding the nearest hold point, finding the distance to that point, and then use some triangle math to keep the player that one distance from the point. This is a lot of math, and it’s not easy. Depending on what grade of math you are in, it may be too complicated, but I bet you could figure it out. Good luck!

---

<div class="post-metadata">

**Author:** ![BotWarrior](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/botwarrior/32/25328_2.png) [@BotWarrior](https://forum.makecode.com/u/BotWarrior)\
**Post date:** [May 30, 2025, 2:01pm UTC](https://forum.makecode.com/t/i-need-help-making-a-game/36982/4 "2025-05-30T14:01:55Z")

</div>

I think using the place my sprite distance from could be good… I was actually thinking about this yesterday. I pride myself on being good at maths, but we haven’t learned trigonometry yet. Maybe I will just Khan academy it…

---

<div class="post-metadata">

**Author:** ![Noob1235](https://avatars.discourse-cdn.com/v4/letter/n/e56c9b/32.png) [@Noob1235](https://forum.makecode.com/u/Noob1235)\
**Post date:** [May 30, 2025, 5:04pm UTC](https://forum.makecode.com/t/i-need-help-making-a-game/36982/5 "2025-05-30T17:04:35Z")

</div>

I might need help. I am only in algebra, and I am not that good at it! (Wait, did I just give away my age?)

---

<div class="post-metadata">

**Author:** ![British\_Dog](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/british_dog/32/34353_2.png) [@British\_Dog](https://forum.makecode.com/u/British_Dog)\
**Post date:** [May 30, 2025, 5:12pm UTC](https://forum.makecode.com/t/i-need-help-making-a-game/36982/6 "2025-05-30T17:12:44Z")

</div>

I can help. i just got done with geometry so I have no idea either

---

<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:** [May 30, 2025, 5:13pm UTC](https://forum.makecode.com/t/i-need-help-making-a-game/36982/7 "2025-05-30T17:13:12Z")

</div>

I don’t think that gives away your age. You’ll want to look up The Pythagorean Theorem (a^2 + b^2 = c^2) which is the distance formula you’ll need. You will also need some understanding of gravity and how it interacts with swinging objects, namely how the gravity will translate into horizontal movement. You could also just fudge the numbers until it looks relatively correct.

---

<div class="post-metadata">

**Author:** ![British\_Dog](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/british_dog/32/34353_2.png) [@British\_Dog](https://forum.makecode.com/u/British_Dog)\
**Post date:** [May 30, 2025, 5:13pm UTC](https://forum.makecode.com/t/i-need-help-making-a-game/36982/8 "2025-05-30T17:13:38Z")

</div>

caught you  
 ![Screenshot 2025-05-30 10.06.38 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/c/2/c2a9f6a09f6c092fcd3cbc16737a99e7aa27f52a.png)

---

<div class="post-metadata">

**Author:** ![BLADEr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blader/32/16422_2.png) [@BLADEr](https://forum.makecode.com/u/BLADEr)\
**Post date:** [June 2, 2025, 2:57pm UTC](https://forum.makecode.com/t/i-need-help-making-a-game/36982/9 "2025-06-02T14:57:05Z")

</div>

Recently got back from camping. That sounds like a cool project and yeah, you might need a better extension for this kind of problem if you don’t want the springiness. Using the “place my sprite distance” will help like @BotWarrior said.  
I am down and willing to help! And make a new extension if needed.

---

<div class="post-metadata">

**Author:** ![Noob1235](https://avatars.discourse-cdn.com/v4/letter/n/e56c9b/32.png) [@Noob1235](https://forum.makecode.com/u/Noob1235)\
**Post date:** [June 3, 2025, 2:21am UTC](https://forum.makecode.com/t/i-need-help-making-a-game/36982/10 "2025-06-03T02:21:12Z")

</div>

I made this so far, I just need to add gravity and the line drawing.

> **[Stick-man Hook](https://arcade.makecode.com/S90761-63634-79909-92172)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Noob1235](https://avatars.discourse-cdn.com/v4/letter/n/e56c9b/32.png) [@Noob1235](https://forum.makecode.com/u/Noob1235)\
**Post date:** [June 3, 2025, 2:44am UTC](https://forum.makecode.com/t/i-need-help-making-a-game/36982/11 "2025-06-03T02:44:15Z")

</div>

how would I draw a line?

---

<div class="post-metadata">

**Author:** ![Noob1235](https://avatars.discourse-cdn.com/v4/letter/n/e56c9b/32.png) [@Noob1235](https://forum.makecode.com/u/Noob1235)\
**Post date:** [June 3, 2025, 2:45am UTC](https://forum.makecode.com/t/i-need-help-making-a-game/36982/12 "2025-06-03T02:45:14Z")

</div>

I was playing around with how to draw the line and I made a mini soft body extension.

> **[Stick-man Hook](https://arcade.makecode.com/S90761-63634-79909-92172)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![BLADEr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blader/32/16422_2.png) [@BLADEr](https://forum.makecode.com/u/BLADEr)\
**Post date:** [June 4, 2025, 4:47pm UTC](https://forum.makecode.com/t/i-need-help-making-a-game/36982/13 "2025-06-04T16:47:15Z")

</div>

I made a quick example of how the gravity and line drawing might look:

Press A to attach rope from player to the block

> **[line canvas example](https://arcade.makecode.com/S70164-10236-39000-54652)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

I can turn that line-canvas toolbox into an extension if you need.

---

<div class="post-metadata">

**Author:** ![BotWarrior](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/botwarrior/32/25328_2.png) [@BotWarrior](https://forum.makecode.com/u/BotWarrior)\
**Post date:** [June 9, 2025, 1:18pm UTC](https://forum.makecode.com/t/i-need-help-making-a-game/36982/14 "2025-06-09T13:18:15Z")

</div>

Cool! This as an extension would be amazing.

---

<div class="post-metadata">

**Author:** ![BLADEr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blader/32/16422_2.png) [@BLADEr](https://forum.makecode.com/u/BLADEr)\
**Post date:** [July 20, 2025, 2:21am UTC](https://forum.makecode.com/t/i-need-help-making-a-game/36982/15 "2025-07-20T02:21:46Z")

</div>

Here’s the extension:

> **[GitHub - bladebaillio/line-canvas-extension: Create lines from 2 sprites that draw on a movable...](https://github.com/bladebaillio/line-canvas-extension)**
>
> Create lines from 2 sprites that draw on a movable canvas

I may end up adding like one or two more blocks, but this is basically it. It creates a sprite between two other sprites and gets the width and height of the x and y distances of the two sprites. And draws a line between them.

Let me know if you need an example of how to use it.
