# Bugs with  following sprites

**URL:** https://forum.makecode.com/t/bugs-with-following-sprites/32404
**Category:** Help
**Tags:** game
**Created:** [December 12, 2024, 12:14am UTC](https://forum.makecode.com/t/bugs-with-following-sprites/32404 "2024-12-12T00:14:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Holderify](https://avatars.discourse-cdn.com/v4/letter/h/9fc348/32.png) [@Holderify](https://forum.makecode.com/u/Holderify)
#### Post date: [December 12, 2024, 12:14am UTC](https://forum.makecode.com/t/bugs-with-following-sprites/32404/1 "2024-12-12T00:14:06Z")

</div>

i cant figure out how to get my crosshair sprite to follow the nearest enemy without it casting null.  
[Game](https://arcade.makecode.com/S16920-59983-66720-33026)
