# Trail mechanic and sprite

**URL:** <https://forum.makecode.com/t/trail-mechanic-and-sprite/10471>\
**Category:** Game Design\
**Created:** [October 18, 2021, 4:35pm UTC](https://forum.makecode.com/t/trail-mechanic-and-sprite/10471 "2021-10-18T16:35:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![beepboop](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@beepboop](https://forum.makecode.com/u/beepboop)\
**Post date:** [October 18, 2021, 4:35pm UTC](https://forum.makecode.com/t/trail-mechanic-and-sprite/10471/1 "2021-10-18T16:35:55Z")

</div>

A simple Image based trail system.

> **[Ribbon demo](https://arcade.makecode.com/56243-69749-16966-17126)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Featuring:

- A fully animated player sprite
- Infinite jumps
- Decent perf on a meowbit
- Sine wave when not jumping
- The trail follows you in when not moving

Downsides:

- Because the trail isn’t fully redrawn each frame, it doesn’t support scrolling.
- The trail can break slightly when going back on yourself, because of how the erasing works.

Feel free to reuse the code and animations (with credit).

---

<div class="post-metadata">

**Author:** ![PrinceDaBezt123](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/princedabezt123/32/6280_2.png) [@PrinceDaBezt123](https://forum.makecode.com/u/PrinceDaBezt123)\
**Post date:** [April 25, 2022, 5:12pm UTC](https://forum.makecode.com/t/trail-mechanic-and-sprite/10471/2 "2022-04-25T17:12:27Z")

</div>

Beautiful! This creation is impressive 😊
