# How would I make a homing attack like this?

**URL:** <https://forum.makecode.com/t/how-would-i-make-a-homing-attack-like-this/12174>\
**Category:** Help\
**Tags:** game\
**Created:** [February 14, 2022, 8:05pm UTC](https://forum.makecode.com/t/how-would-i-make-a-homing-attack-like-this/12174 "2022-02-14T20:05:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IMakeCode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/imakecode/32/36052_2.png) [@IMakeCode](https://forum.makecode.com/u/IMakeCode)\
**Post date:** [February 14, 2022, 8:05pm UTC](https://forum.makecode.com/t/how-would-i-make-a-homing-attack-like-this/12174/1 "2022-02-14T20:05:59Z")

</div>

Hey y’all, I’m currently trying to test some things for a Mega Man recreation. I’m trying to figure out how to make an attack that takes the player position, and then fires a shot at the marked location. Basically, it sees where the player last was and fires an attack there. I don’t know if you can understand what I am trying to get help with, so here’s a video on basically what I was talking about [https://www.youtube.com/watch?v=xN8bRm1nprM](https://www.youtube.com/watch?v=xN8bRm1nprM) .

---

<div class="post-metadata">

**Author:** ![personalnote](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/personalnote/32/31359_2.png) [@personalnote](https://forum.makecode.com/u/personalnote)\
**Post date:** [February 14, 2022, 10:50pm UTC](https://forum.makecode.com/t/how-would-i-make-a-homing-attack-like-this/12174/2 "2022-02-14T22:50:46Z")

</div>

you can use the tilemap extension. There is a thing there that says “last location of mysprite” or something like that. you’ll have to clarify further
