# Trial function (Need help making it into an extension)

**URL:** <https://forum.makecode.com/t/trial-function-need-help-making-it-into-an-extension/33761>\
**Category:** Help\
**Created:** [February 10, 2025, 6:14pm UTC](https://forum.makecode.com/t/trial-function-need-help-making-it-into-an-extension/33761 "2025-02-10T18:14:48Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gl125371](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gl125371/32/29131_2.png) [@Gl125371](https://forum.makecode.com/u/Gl125371)\
**Post date:** [February 10, 2025, 6:14pm UTC](https://forum.makecode.com/t/trial-function-need-help-making-it-into-an-extension/33761/1 "2025-02-10T18:14:48Z")

</div>

So… I looked at @LaserFoxPro’s [Trail thing](https://forum.makecode.com/t/trail-thing/8890) and I made it into a function: [Trial Example](https://arcade.makecode.com/S92280-41822-32954-57700)  
However, can someone make it into an extension? Currently, animating the trial is not supported, but I am working to implement that.

---

<div class="post-metadata">

**Author:** ![Sonicblaston](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sonicblaston/32/19164_2.png) [@Sonicblaston](https://forum.makecode.com/u/Sonicblaston)\
**Post date:** [February 10, 2025, 6:43pm UTC](https://forum.makecode.com/t/trial-function-need-help-making-it-into-an-extension/33761/2 "2025-02-10T18:43:10Z")

</div>

I have made it into an extension now. do you want the code or do you want me to release a github link to download it?

---

<div class="post-metadata">

**Author:** ![Gl125371](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gl125371/32/29131_2.png) [@Gl125371](https://forum.makecode.com/u/Gl125371)\
**Post date:** [February 10, 2025, 6:54pm UTC](https://forum.makecode.com/t/trial-function-need-help-making-it-into-an-extension/33761/3 "2025-02-10T18:54:47Z")

</div>

Release a GitHub link. Thank You!

---

<div class="post-metadata">

**Author:** ![Sonicblaston](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sonicblaston/32/19164_2.png) [@Sonicblaston](https://forum.makecode.com/u/Sonicblaston)\
**Post date:** [February 11, 2025, 2:04am UTC](https://forum.makecode.com/t/trial-function-need-help-making-it-into-an-extension/33761/4 "2025-02-11T02:04:46Z")

</div>

Ima call this the Tails extension instead of trails. Just because I read it wrong lol. And therefore i subconsciously thought about foxes and therefore colored the block orange without realizing it before now. It looks like a tail anyways so why not? Here it is:

> **[GitHub - Sonicblaston62/tails-extension: An extension that gives your sprite a tail of...](https://github.com/Sonicblaston62/tails-extension)**
>
> An extension that gives your sprite a tail of sprites in shrinking size behind

Here’s an example project for it too

> **[Tails Extension](https://arcade.makecode.com/S44377-78386-88844-36117)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<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:** [February 11, 2025, 2:08am UTC](https://forum.makecode.com/t/trial-function-need-help-making-it-into-an-extension/33761/5 "2025-02-11T02:08:37Z")

</div>

Would it be possible if we could set how many sprites we wanted following and Ghost be set as on for the trail? In bigger games it could potentially increase the speed massively and allow more versatility.

---

<div class="post-metadata">

**Author:** ![Gl125371](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gl125371/32/29131_2.png) [@Gl125371](https://forum.makecode.com/u/Gl125371)\
**Post date:** [February 11, 2025, 1:06pm UTC](https://forum.makecode.com/t/trial-function-need-help-making-it-into-an-extension/33761/6 "2025-02-11T13:06:27Z")

</div>

To set how many sprites you want to follow the player, you need to edit the extension it self, since what @LaserFoxPro did was to make 15 sprites and have the first follow the player, the second follows the first one, and so one. As to making it able to ghost through walls, I think I already added that.

---

<div class="post-metadata">

**Author:** ![Gl125371](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gl125371/32/29131_2.png) [@Gl125371](https://forum.makecode.com/u/Gl125371)\
**Post date:** [February 11, 2025, 1:07pm UTC](https://forum.makecode.com/t/trial-function-need-help-making-it-into-an-extension/33761/7 "2025-02-11T13:07:02Z")

</div>

Can you make it so it accepts another parameter as speed?  
As for the extension, I love it!

---

<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:** [February 11, 2025, 9:02pm UTC](https://forum.makecode.com/t/trial-function-need-help-making-it-into-an-extension/33761/8 "2025-02-11T21:02:09Z")

</div>

Ghost is another thing seperate from ghost through walls, it massively reduces the number of calculations your computer has to do for checking collision with other objects. I have used it in the past (before the particle extension) to make particles which are still sprites. If this works that could be good.

---

<div class="post-metadata">

**Author:** ![Sonicblaston](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sonicblaston/32/19164_2.png) [@Sonicblaston](https://forum.makecode.com/u/Sonicblaston)\
**Post date:** [February 11, 2025, 9:03pm UTC](https://forum.makecode.com/t/trial-function-need-help-making-it-into-an-extension/33761/9 "2025-02-11T21:03:10Z")

</div>

It has been updated now with two new parameters. Speed and sprites. so you can now change how many sprites will be made for the tail. does produce some lag if you set the number too high

---

<div class="post-metadata">

**Author:** ![Gl125371](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gl125371/32/29131_2.png) [@Gl125371](https://forum.makecode.com/u/Gl125371)\
**Post date:** [February 11, 2025, 10:46pm UTC](https://forum.makecode.com/t/trial-function-need-help-making-it-into-an-extension/33761/10 "2025-02-11T22:46:06Z")

</div>

Ok. Thank you!

---

<div class="post-metadata">

**Author:** ![Gl125371](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gl125371/32/29131_2.png) [@Gl125371](https://forum.makecode.com/u/Gl125371)\
**Post date:** [February 11, 2025, 11:34pm UTC](https://forum.makecode.com/t/trial-function-need-help-making-it-into-an-extension/33761/11 "2025-02-11T23:34:15Z")

</div>

@Sonicblaston Sorry for bothering you with this, but in the extension, I see an error where if I make a trail but set the speed to 0, in addition to the trial I set, there is another drumstick chasing me, while the trial stays stationary.

---

<div class="post-metadata">

**Author:** ![Sonicblaston](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sonicblaston/32/19164_2.png) [@Sonicblaston](https://forum.makecode.com/u/Sonicblaston)\
**Post date:** [February 12, 2025, 6:11pm UTC](https://forum.makecode.com/t/trial-function-need-help-making-it-into-an-extension/33761/12 "2025-02-12T18:11:47Z")

</div>

fixed I think. If I understood your question correctly. the extra drumstick is now gone. but there is still a tail frozen where it spawned

---

<div class="post-metadata">

**Author:** ![Sonicblaston](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sonicblaston/32/19164_2.png) [@Sonicblaston](https://forum.makecode.com/u/Sonicblaston)\
**Post date:** [February 12, 2025, 6:11pm UTC](https://forum.makecode.com/t/trial-function-need-help-making-it-into-an-extension/33761/13 "2025-02-12T18:11:52Z")

</div>

Btw if you set the speed higher than the players speed you get some really cool results

---

<div class="post-metadata">

**Author:** ![Gl125371](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gl125371/32/29131_2.png) [@Gl125371](https://forum.makecode.com/u/Gl125371)\
**Post date:** [February 12, 2025, 6:58pm UTC](https://forum.makecode.com/t/trial-function-need-help-making-it-into-an-extension/33761/14 "2025-02-12T18:58:21Z")

</div>

Ok. Thanks
