# How can I make my game character teleport to the place where I have taped

**URL:** <https://forums.unrealengine.com/t/how-can-i-make-my-game-character-teleport-to-the-place-where-i-have-taped/387867>\
**Category:** Character & Animation\
**Tags:** teleport, topdown, unreal-engine, question\
**Created:** [March 14, 2017, 5:34am UTC](https://forums.unrealengine.com/t/how-can-i-make-my-game-character-teleport-to-the-place-where-i-have-taped/387867 "2017-03-14T05:34:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_e8e77e00](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e8e77e00](https://forums.unrealengine.com/u/anonymous_user_e8e77e00)\
**Post date:** [March 14, 2017, 5:34am UTC](https://forums.unrealengine.com/t/how-can-i-make-my-game-character-teleport-to-the-place-where-i-have-taped/387867/1 "2017-03-14T05:34:57Z")

</div>

I need my game char teleport to the place at the map, where i have clicked to.  
I am making 2d topdown game.  
I’m really sorry for my english…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3b4c8d46](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3b4c8d46](https://forums.unrealengine.com/u/anonymous_user_3b4c8d46)\
**Post date:** [March 14, 2017, 8:17am UTC](https://forums.unrealengine.com/t/how-can-i-make-my-game-character-teleport-to-the-place-where-i-have-taped/387867/2 "2017-03-14T08:17:37Z")

</div>

Creating something like Diablo 2? xD  
The logics for teleport wouldn’t be too difficult. Try go retrieve mouse click, the location of the mouse click and then you just have to update the player’s position to the new position.

---

<div class="post-metadata">

**Author:** ![Erumaru](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Erumaru](https://forums.unrealengine.com/u/Erumaru)\
**Post date:** [March 14, 2017, 9:24am UTC](https://forums.unrealengine.com/t/how-can-i-make-my-game-character-teleport-to-the-place-where-i-have-taped/387867/3 "2017-03-14T09:24:16Z")

</div>

Get world position of your mouse after click, then set actor location to it. There is no function like mouse world position, so your should do line trace from your mouse click to landscape.  
UPD: this may help you [[SOLVED] Mouse location to world space - Blueprint Visual Scripting - Unreal Engine Forums](https://forums.unrealengine.com/showthread.php?6644-SOLVED-Mouse-location-to-world-space)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e8e77e00](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e8e77e00](https://forums.unrealengine.com/u/anonymous_user_e8e77e00)\
**Post date:** [March 17, 2017, 6:01am UTC](https://forums.unrealengine.com/t/how-can-i-make-my-game-character-teleport-to-the-place-where-i-have-taped/387867/4 "2017-03-17T06:01:47Z")

</div>

OK, I have found a solution to my problem and it is

 ![130448-some.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/7/1d7803ded3bc3191752d3800a5054a7822e92b3b.jpeg)

working dine for me.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e8e77e00](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e8e77e00](https://forums.unrealengine.com/u/anonymous_user_e8e77e00)\
**Post date:** [March 17, 2017, 6:03am UTC](https://forums.unrealengine.com/t/how-can-i-make-my-game-character-teleport-to-the-place-where-i-have-taped/387867/5 "2017-03-17T06:03:18Z")

</div>

\*fine cc:
