# Character can't dodge when i press A&D

**URL:** <https://forums.unrealengine.com/t/character-cant-dodge-when-i-press-a-d/794535>\
**Category:** Character & Animation\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [March 20, 2023, 4:41am UTC](https://forums.unrealengine.com/t/character-cant-dodge-when-i-press-a-d/794535 "2023-03-20T04:41:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaoru\_sndjasdnka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kaoru\_sndjasdnka](https://forums.unrealengine.com/u/kaoru_sndjasdnka)\
**Post date:** [March 20, 2023, 4:41am UTC](https://forums.unrealengine.com/t/character-cant-dodge-when-i-press-a-d/794535/1 "2023-03-20T04:41:54Z")

</div>

I’m trying to make an endless runner game in unreal. and I followed the endless runner game tutorial on the official unreal YouTube. and I got an error where the character can’t perform dodge when I press A & D keyboard and can’t jump when i press backspace. is there any solution for the problem?

 ![2023-03-20 (1)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/8/7e81a257d2ab17d2a0642649c482666d9748b587.png)  
 ![2023-03-20 (2)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/f/37fb14294adaf8a17316b0c17b0db07d990842f2.jpeg)  
 ![2023-03-20 (3)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/e/a/5ea717f060071027b748b911ff5a60d8d3e97b76.png)  
 ![2023-03-20](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/2/db242ab8d8ef419865e2d67635dd37548b814f3c.png)

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [March 20, 2023, 10:13am UTC](https://forums.unrealengine.com/t/character-cant-dodge-when-i-press-a-d/794535/2 "2023-03-20T10:13:04Z")

</div>

Hey @kaoru_sndjasdnka!

A few questions to get things started:

- Where are you setting/updating your can turn variable besides there? On tile overlap you should have an update as well if I am not mistaken. What does that look like?
- Are you using UE5 or UE5.1?
- What does your jump blueprint looks like?

Any additional specifics you provide may go a long way in solving your problem!

---

<div class="post-metadata">

**Author:** ![kaoru\_sndjasdnka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kaoru\_sndjasdnka](https://forums.unrealengine.com/u/kaoru_sndjasdnka)\
**Post date:** [March 20, 2023, 10:42am UTC](https://forums.unrealengine.com/t/character-cant-dodge-when-i-press-a-d/794535/3 "2023-03-20T10:42:29Z")

</div>

for can turn variable, i just update it in blueprint. i am using UE5.1  
and and this is the jump blueprint

 ![2023-03-20 (3)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/e/a/5ea717f060071027b748b911ff5a60d8d3e97b76.png)

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [March 20, 2023, 10:50am UTC](https://forums.unrealengine.com/t/character-cant-dodge-when-i-press-a-d/794535/4 "2023-03-20T10:50:08Z")

</div>

Hey @kaoru_sndjasdnka,

What I mean is the blueprint for your trigger that should change the variable of can turn to true, as well as the jump itself (the jump and stop jumping functions). Can we see those? Additionally in 5.1, you should be using enhanced input as the old input system has been depreciated.

---

<div class="post-metadata">

**Author:** ![kaoru\_sndjasdnka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kaoru\_sndjasdnka](https://forums.unrealengine.com/u/kaoru_sndjasdnka)\
**Post date:** [March 20, 2023, 11:10am UTC](https://forums.unrealengine.com/t/character-cant-dodge-when-i-press-a-d/794535/5 "2023-03-20T11:10:59Z")

</div>

sorry, I have quite difficult understanding your message. do you mean this one?

 ![2023-03-20](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/2/db242ab8d8ef419865e2d67635dd37548b814f3c.png)

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [March 21, 2023, 9:17am UTC](https://forums.unrealengine.com/t/character-cant-dodge-when-i-press-a-d/794535/6 "2023-03-21T09:17:29Z")

</div>

Hey @kaoru_sndjasdnka,

To be more specific where in your code do you make Can Turn = True. From what you have shown so far, Can Turn is always false, so you will never turn corners/change paths.

 ![p9tzfaoLPw](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/b/88bf92464b5281de078381c95d804a645d878193.jpeg)

This portion would have been set up in this video of the official Unreal tutorial series you followed:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/0/fd02a084043ef47be6494fcbb0b5259836a5de96.jpeg "Endless Runner: Turning Corners | 06 | v4.7 Tutorial Series | Unreal Engine") ](https://www.youtube.com/watch?v=E8D3TMvrYiM)

For your jumping, specifically what does your jump function, what the action triggers, look like? Did it work at any point? If so, what changed?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/0/0/000b22a5799e2c595d974e01f6580555ff916662.jpeg)

We can definitely get to the bottom of this.

---

<div class="post-metadata">

**Author:** ![kaoru\_sndjasdnka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kaoru\_sndjasdnka](https://forums.unrealengine.com/u/kaoru_sndjasdnka)\
**Post date:** [March 29, 2023, 1:50pm UTC](https://forums.unrealengine.com/t/character-cant-dodge-when-i-press-a-d/794535/7 "2023-03-29T13:50:25Z")

</div>

Thank you for your information

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [March 30, 2023, 9:04am UTC](https://forums.unrealengine.com/t/character-cant-dodge-when-i-press-a-d/794535/8 "2023-03-30T09:04:58Z")

</div>

Hey @kaoru_sndjasdnka!

Was the above the solution you were looking for? Or was there a different solution you found?
