# Sprite point towards cursor

**URL:** <https://forums.unrealengine.com/t/sprite-point-towards-cursor/417300>\
**Category:** C++\
**Tags:** platformer, cursor, actor-rotation, unreal-engine, question\
**Created:** [February 14, 2018, 11:50am UTC](https://forums.unrealengine.com/t/sprite-point-towards-cursor/417300 "2018-02-14T11:50:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ganondork01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ganondork01](https://forums.unrealengine.com/u/Ganondork01)\
**Post date:** [February 14, 2018, 11:50am UTC](https://forums.unrealengine.com/t/sprite-point-towards-cursor/417300/1 "2018-02-14T11:50:22Z")

</div>

Hi! I’m making a point and click shooting platformer in which the mouse position shows where the bullets hit. I have made two separate sprites, the character and the gun. I want the gun to face the mouse, but stay in the same position on the character. I have it so the mouse appears on the screen, but have not got any further. Any suggestions?

![230655-idk.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/1/7618e62953db51da94d05796d3b6354e3a961f98.png)

---

<div class="post-metadata">

**Author:** ![Ganondork01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ganondork01](https://forums.unrealengine.com/u/Ganondork01)\
**Post date:** [February 16, 2018, 11:04am UTC](https://forums.unrealengine.com/t/sprite-point-towards-cursor/417300/2 "2018-02-16T11:04:45Z")

</div>

!UPDATE! I’ve worked out some of the code (possibly), I just need to find a way to link the two sections.

 ![230856-help-again-update.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/a/b1af58e70ef1a2cd9b53db84a2f6620752ac1b38.png)
