# Have trouble limiting input when sliding

**URL:** <https://forums.unrealengine.com/t/have-trouble-limiting-input-when-sliding/1527369>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Physics, Blueprint, question\
**Created:** [December 15, 2023, 11:58am UTC](https://forums.unrealengine.com/t/have-trouble-limiting-input-when-sliding/1527369 "2023-12-15T11:58:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdjfewaf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jdjfewaf](https://forums.unrealengine.com/u/jdjfewaf)\
**Post date:** [December 15, 2023, 11:58am UTC](https://forums.unrealengine.com/t/have-trouble-limiting-input-when-sliding/1527369/1 "2023-12-15T11:58:25Z")

</div>

I’m currently working on a sliding feature （in Character）. When holding x, the character will slide along the gradient of surface under its feet. Here are my nodes:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/a/aba8b78474b42ae13e4ee15fd4e9b98a7d233df1.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/e/b/1ebf42103c606a5ff67642a576ec6d893578bb77.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/f/b/5fb8a8ed0764e02c206c0e6ec0ddfff5d61dc698.png)

I’m trying to improve it by blocking input[walk] backwards while sliding, but I really don’t know what to do. Maybe there’s better solutions?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/f/1ff23f0e9fa5919e052f2efb3a344477542c725c.png)

I appreciate any information.
