# How do i make a dodge/dash

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-a-dodge-dash/380483>\
**Category:** Character & Animation\
**Tags:** dash, unreal-engine, Blueprint, question\
**Created:** [December 30, 2016, 8:50am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-dodge-dash/380483 "2016-12-30T08:50:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jakupiii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jakupiii](https://forums.unrealengine.com/u/Jakupiii)\
**Post date:** [December 30, 2016, 8:50am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-dodge-dash/380483/1 "2016-12-30T08:50:17Z")

</div>

I want to make my character dash disappear then reappear at the end also with some particles how would i go about doing this

---

<div class="post-metadata">

**Author:** ![Looniper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Looniper](https://forums.unrealengine.com/u/Looniper)\
**Post date:** [December 30, 2016, 11:29am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-dodge-dash/380483/2 "2016-12-30T11:29:43Z")

</div>

In your character blueprint - add the particle for going into stealth, and turn off Auto Activate.

In the Event Graph, add a custom event to be called when they hide that.

1. Activates the particle.
2. Delays for a moment to allow it to begin showing.
3. Hides the player
4. Deactivates the stealth particles after an appropriate amount of time.

* * *

As example…

 ![120256-vanish_event.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/d/97d85b4ab500b131d8f298f422bff6fcf92a5508.png)

* * *

You can call it from whatever you like. To test it just add a Keyboard-Q or whatever, and have that [Vanish]

I have this set so that when they move, it makes them visible again.

 ![120257-onmove_unhide.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/e/f5e8f23652b4428d0523f59f6ef01c6f4c180c25.png)

* * *

But you need to make sure they are actually moving - if you are using the Example content - they call player movement whether any “movement” is to take place or not.

Adding a branch to be sure they are moving (the input is not 0) will keep them from coming out of hiding instantly on hiding.

 ![120258-ensure_movement.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/9/139c2062790dae1d82b30b7b529da6a0e66b2161.png)

You can call it from any action, Dash, Hide, etc. And you can use other methods to make them visible again.  
I used movement because in most games that have stealth it ends it.

---

<div class="post-metadata">

**Author:** ![Jakupiii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jakupiii](https://forums.unrealengine.com/u/Jakupiii)\
**Post date:** [December 31, 2016, 12:53am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-dodge-dash/380483/3 "2016-12-31T00:53:15Z")

</div>

Ok so i did it but and works perfectly but only once when i try do it again it gets out of hiding instantly

---

<div class="post-metadata">

**Author:** ![Looniper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Looniper](https://forums.unrealengine.com/u/Looniper)\
**Post date:** [December 31, 2016, 11:28am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-dodge-dash/380483/4 "2016-12-31T11:28:37Z")

</div>

What is your Set Visibility(to return to visible) tied to?

If you connect it to the Movement controls - you need the check to be sure they are actually trying to move. (Axis Value != 0)

* * *

If that is not working, you can just make a timer to check for actual motion, regardless of input (it also makes you appear if ‘bumped’ by an opponent, etc)

Set a Timer and create a corresponding Custom Event.

Have that check to see if you are "hidden’ and if so - Get Velocity.

 ![120376-detect_movement.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/4/a34849eca8dcf1734418832defb12355ed130cbc.jpeg)

get Vector Length from that to see how ‘fast’ you are moving (by any means) and become visible if there is significant movement.

---

<div class="post-metadata">

**Author:** ![Jakupiii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jakupiii](https://forums.unrealengine.com/u/Jakupiii)\
**Post date:** [December 31, 2016, 11:54pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-dodge-dash/380483/5 "2016-12-31T23:54:04Z")

</div>

yes! that did it thanks, 1 more thing could you tell me how make my character dash mid way of all this i tried with the launch character node but i cant get it working
