# Can't move the camera by touching while the fire button is pressed HELP PLEASE

**URL:** <https://forums.unrealengine.com/t/cant-move-the-camera-by-touching-while-the-fire-button-is-pressed-help-please/151716>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [October 6, 2020, 12:35pm UTC](https://forums.unrealengine.com/t/cant-move-the-camera-by-touching-while-the-fire-button-is-pressed-help-please/151716 "2020-10-06T12:35:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![p\_skm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@p\_skm](https://forums.unrealengine.com/u/p_skm)\
**Post date:** [October 6, 2020, 12:35pm UTC](https://forums.unrealengine.com/t/cant-move-the-camera-by-touching-while-the-fire-button-is-pressed-help-please/151716/1 "2020-10-06T12:35:29Z")

</div>

In my third-person project, there is shooting and camera movement by touching ( **camera movement made**  **from this tutorial** - [https://www.youtube.com/watch?v=GAomDzu54vk&t=332s](https://www.youtube.com/watch?v=GAomDzu54vk&t=332s)).

The problem is that when I start shooting (by pressing the button on the widget), it triggers the shooting event, but the camera stops moving **while I hold the fire button** (accordingly, I **cannot aim while shooting** )

---

<div class="post-metadata">

**Author:** ![zerobored](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zerobored](https://forums.unrealengine.com/u/zerobored)\
**Post date:** [October 7, 2020, 8:28am UTC](https://forums.unrealengine.com/t/cant-move-the-camera-by-touching-while-the-fire-button-is-pressed-help-please/151716/2 "2020-10-07T08:28:12Z")

</div>

You need to use On Touch Started function inside the UMG and to stop shooting I’m using InputTouch released event.  
When on touch started is active set bool isShooting to true and on InputTouch released set isShooting to false.  
I wanted to make the release also on UMG but didn’t find any solutions. Once I get outside the button area the release event is not triggered anymore.

Btw you can use the one I’ve made for camera movement to avoid using event tick.

---

<div class="post-metadata">

**Author:** ![p\_skm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@p\_skm](https://forums.unrealengine.com/u/p_skm)\
**Post date:** [October 8, 2020, 8:53am UTC](https://forums.unrealengine.com/t/cant-move-the-camera-by-touching-while-the-fire-button-is-pressed-help-please/151716/3 "2020-10-08T08:53:29Z")

</div>

I definitely need to press the button to shoot. I am sure that this can be implemented since the same pubg mobile is made on this engine…

---

<div class="post-metadata">

**Author:** ![p\_skm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@p\_skm](https://forums.unrealengine.com/u/p_skm)\
**Post date:** [October 8, 2020, 8:54am UTC](https://forums.unrealengine.com/t/cant-move-the-camera-by-touching-while-the-fire-button-is-pressed-help-please/151716/4 "2020-10-08T08:54:00Z")

</div>

But thanks a lot for controlling the camera

---

<div class="post-metadata">

**Author:** ![SB1985](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sb1985/32/1194527_2.png) [@SB1985](https://forums.unrealengine.com/u/SB1985)\
**Post date:** [October 13, 2020, 6:45pm UTC](https://forums.unrealengine.com/t/cant-move-the-camera-by-touching-while-the-fire-button-is-pressed-help-please/151716/5 "2020-10-13T18:45:32Z")

</div>

In your HUD widget where the fire button is, select the button and disable the IsFocusable checkbox on it.

---

<div class="post-metadata">

**Author:** ![p\_skm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@p\_skm](https://forums.unrealengine.com/u/p_skm)\
**Post date:** [October 15, 2020, 11:33am UTC](https://forums.unrealengine.com/t/cant-move-the-camera-by-touching-while-the-fire-button-is-pressed-help-please/151716/6 "2020-10-15T11:33:49Z")

</div>

I did it by clicking on the overlay or the button, I don’t remember exactly, but still thanks everyone for the help!

---

<div class="post-metadata">

**Author:** ![OSMGAMESSTUDIO](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OSMGAMESSTUDIO](https://forums.unrealengine.com/u/OSMGAMESSTUDIO)\
**Post date:** [February 13, 2024, 2:52pm UTC](https://forums.unrealengine.com/t/cant-move-the-camera-by-touching-while-the-fire-button-is-pressed-help-please/151716/7 "2024-02-13T14:52:34Z")

</div>

hi guys  
its been 3 years  
have anyone solved it ?  
i am a beginner

---

<div class="post-metadata">

**Author:** ![TrueFranco](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/truefranco/32/1095055_2.png) [@TrueFranco](https://forums.unrealengine.com/u/TrueFranco)\
**Post date:** [February 13, 2024, 4:02pm UTC](https://forums.unrealengine.com/t/cant-move-the-camera-by-touching-while-the-fire-button-is-pressed-help-please/151716/8 "2024-02-13T16:02:10Z")

</div>

I was having all this headaches with touch controls until I bough a very cheap template on the market place called Ultimate Touch Components.  
Make yourself a favor and try it, you wont regret it.

---

<div class="post-metadata">

**Author:** ![OSMGAMESSTUDIO](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OSMGAMESSTUDIO](https://forums.unrealengine.com/u/OSMGAMESSTUDIO)\
**Post date:** [February 27, 2024, 11:05am UTC](https://forums.unrealengine.com/t/cant-move-the-camera-by-touching-while-the-fire-button-is-pressed-help-please/151716/9 "2024-02-27T11:05:26Z")

</div>

> [@TrueFranco](#):
>
> Ultimate Touch Components.

okay

---

<div class="post-metadata">

**Author:** ![moumed\_07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@moumed\_07](https://forums.unrealengine.com/u/moumed_07)\
**Post date:** [May 21, 2024, 2:20am UTC](https://forums.unrealengine.com/t/cant-move-the-camera-by-touching-while-the-fire-button-is-pressed-help-please/151716/10 "2024-05-21T02:20:31Z")

</div>

i did’t find it
