# Twin stick top down controls (Hotline Miami/Asteroids)

**URL:** <https://forums.unrealengine.com/t/twin-stick-top-down-controls-hotline-miami-asteroids/279456>\
**Category:** Blueprint\
**Tags:** unreal-engine, twin-stick, top-down, question, Blueprint\
**Created:** [April 2, 2014, 7:57pm UTC](https://forums.unrealengine.com/t/twin-stick-top-down-controls-hotline-miami-asteroids/279456 "2014-04-02T19:57:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_5878b78b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5878b78b](https://forums.unrealengine.com/u/anonymous_user_5878b78b)\
**Post date:** [April 2, 2014, 7:57pm UTC](https://forums.unrealengine.com/t/twin-stick-top-down-controls-hotline-miami-asteroids/279456/1 "2014-04-02T19:57:02Z")

</div>

Hi!

First time poster here.

I’m completely new to scripting even with blueprints and have no Kismet experience. I have looked at various examples of top down blueprints including the content examples. But my main question is how to get controls for a dual analog gamepad working so that whilst the left stick controls PlayerPawn movement, the right stick controls the rotation of the PlayerPawn.

This is what I have so far, but I’m not convinced its even that close. Any help would be awesome. I understand the logic, just don’t know what nodes actually make up that logic.

![alt text]()  
Cheers guys!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5878b78b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5878b78b](https://forums.unrealengine.com/u/anonymous_user_5878b78b)\
**Post date:** [April 2, 2014, 10:42pm UTC](https://forums.unrealengine.com/t/twin-stick-top-down-controls-hotline-miami-asteroids/279456/2 "2014-04-02T22:42:04Z")

</div>

Ok so I have basic movement sorted out. But am still stuck on how to make the pawn aim using the right gamepad stick - I have rotation, but I want it to essentially just rotate the player on the spot according to where the stick is moved

---

<div class="post-metadata">

**Author:** ![FEXTWOLF](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FEXTWOLF](https://forums.unrealengine.com/u/FEXTWOLF)\
**Post date:** [May 15, 2014, 6:09am UTC](https://forums.unrealengine.com/t/twin-stick-top-down-controls-hotline-miami-asteroids/279456/3 "2014-05-15T06:09:47Z")

</div>

This works for me. I’ve bound MoveForward to the Gamepad Right Y, and the MoveRight to Gamepad Right X, both have a value of 1.0.

 ![6304-twin_stick_controls.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/f/d/ffd7b558756aa286e320313fc59d21c61fcee57b.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e774a220](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e774a220](https://forums.unrealengine.com/u/anonymous_user_e774a220)\
**Post date:** [March 24, 2015, 9:38pm UTC](https://forums.unrealengine.com/t/twin-stick-top-down-controls-hotline-miami-asteroids/279456/4 "2015-03-24T21:38:01Z")

</div>

It work fine but there is a little glitch. when the stick is released the actor return to the default location. there is a way to fix it?

---

<div class="post-metadata">

**Author:** ![DatDopeDan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DatDopeDan](https://forums.unrealengine.com/u/DatDopeDan)\
**Post date:** [January 5, 2017, 8:56pm UTC](https://forums.unrealengine.com/t/twin-stick-top-down-controls-hotline-miami-asteroids/279456/5 "2017-01-05T20:56:03Z")

</div>

You ever find a way to make the rotation stick when the analog is released?  
EDIT: Never-mind, I got it working with this:

 ![121048-rotation+code.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/4/1a41b37ef804508bc506ccf81f61d6e1d1d81c10.png)

Sorry about the spaghetti nodes

---

<div class="post-metadata">

**Author:** ![Thik101](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thik101/32/581907_2.png) [@Thik101](https://forums.unrealengine.com/u/Thik101)\
**Post date:** [June 24, 2022, 6:03pm UTC](https://forums.unrealengine.com/t/twin-stick-top-down-controls-hotline-miami-asteroids/279456/6 "2022-06-24T18:03:30Z")

</div>

I found another way very similar to yours. However, this is for a third person Character. This code follow the Weapon/Character when they move together or alone and does not reset the aim after releasing the joystick.

 ![Twin Stick Movement](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/d/c/9dcc50791c339407e181fe0e978dffe5d0803c12.png)
