# MakeCode Math: Sprite Distance

**URL:** <https://forum.makecode.com/t/makecode-math-sprite-distance/2101>\
**Category:** Arcade\
**Created:** [May 15, 2020, 8:48am UTC](https://forum.makecode.com/t/makecode-math-sprite-distance/2101 "2020-05-15T08:48:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacob\_c](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jacob_c/32/1532_2.png) [@jacob\_c](https://forum.makecode.com/u/jacob_c)\
**Post date:** [May 15, 2020, 8:48am UTC](https://forum.makecode.com/t/makecode-math-sprite-distance/2101/1 "2020-05-15T08:48:47Z")

</div>

To try something new, I made a video: [https://youtu.be/QCZ2iy45YfM](https://youtu.be/QCZ2iy45YfM)

In it, I try to cover some of the math behind calculating the distance between two sprites.

I’m completely noob at this and welcome any feedback you have… even if it’s “Stick to making games…” 😅

If you’re up for watching some nerdy math stuff explained in makecode, check it out.

---

<div class="post-metadata">

**Author:** ![otorp2](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/otorp2/32/940_2.png) [@otorp2](https://forum.makecode.com/u/otorp2)\
**Post date:** [May 15, 2020, 11:22am UTC](https://forum.makecode.com/t/makecode-math-sprite-distance/2101/2 "2020-05-15T11:22:00Z")

</div>

Thank you! MORE please!  
This is awesome - I didn’t know there was a drawline block and the return block!  
Great speaking voice too -

It would be so cool if you went through vector math!

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [May 15, 2020, 1:46pm UTC](https://forum.makecode.com/t/makecode-math-sprite-distance/2101/3 "2020-05-15T13:46:33Z")

</div>

Great video, and the examples were perfect - especially the end with drawing the right triangle between the sprites to make it clear what’s happening!

---

<div class="post-metadata">

**Author:** ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)\
**Post date:** [May 15, 2020, 2:37pm UTC](https://forum.makecode.com/t/makecode-math-sprite-distance/2101/4 "2020-05-15T14:37:00Z")

</div>

If you start a playlist, we’ll be able to showcase on the arcade home screen.

---

<div class="post-metadata">

**Author:** ![rymc88](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rymc88/32/13577_2.png) [@rymc88](https://forum.makecode.com/u/rymc88)\
**Post date:** [September 3, 2021, 10:36pm UTC](https://forum.makecode.com/t/makecode-math-sprite-distance/2101/5 "2021-09-03T22:36:41Z")

</div>

Great video! Keep them coming if you can. Excellent visuals and explanation.

---

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [September 6, 2021, 10:19pm UTC](https://forum.makecode.com/t/makecode-math-sprite-distance/2101/6 "2021-09-06T22:19:39Z")

</div>

honestly, I was expecting a rickroll, but I was pleasantly surprised! Good content!
