# Changing the image of sprites following a path

**URL:** <https://forum.makecode.com/t/changing-the-image-of-sprites-following-a-path/17867>\
**Category:** Arcade\
**Created:** [February 7, 2023, 6:25pm UTC](https://forum.makecode.com/t/changing-the-image-of-sprites-following-a-path/17867 "2023-02-07T18:25:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LittleRogue](https://avatars.discourse-cdn.com/v4/letter/l/d2c977/32.png) [@LittleRogue](https://forum.makecode.com/u/LittleRogue)\
**Post date:** [February 7, 2023, 6:25pm UTC](https://forum.makecode.com/t/changing-the-image-of-sprites-following-a-path/17867/1 "2023-02-07T18:25:58Z")

</div>

Hi! I feel like I’m missing an obvious solution, but I can’t figure it out…

I have multiple helicopter sprites following a path using the [A\* extension] ([https://github.com/jwunderl/arcade-tilemap-a-star](https://github.com/jwunderl/arcade-tilemap-a-star)). I want to add animation onto the sprites so that when the helicopter’s path takes them to the left, the sprite image changes to a helicopter flying to the left. When their path takes them to the right, the image automatically changes to a helicopter flying to the right.

Any ideas? Thanks in advance!
