How to make a slide ability?

I am trying to make slide ability kind of simular to games like mirrors edge or refunct. I already have crouch set up but when you crouch while moving forward I want it to slide. Here’s what I had set up

but it doesnt work very well, first the character speed float doesnt work so the can slide doesnt either. second I can’t find away to make the player slide foward like in refunct. Any ideas how to detect when the player is moving foward and also how to make the player slide? Didn’t really know how to explain it sorry if its hard to understand.

to check if the player is NOT moving forward you get actor xvelocity and you check if it’s lesser or equal than 0.1. To actually make the player slide it would require a further look into it and i’m not sure i’m able to explain it in a comment.

Heey Dylaniza,

It must be like that if I do not understand it wrong.

yea that’s actually a good idea. you can then setup a bool in the animBP that lets your character pass over the “slide” state reading that IsSlide bool after the branch

Yes that’s right.

I can’t find anything about how to use the nearly equal node, I found this [but I don’t know how to do the rest of it. I want it to][1] change the can slide bool to true when it is nearly equal, any ideas how ?

type <= and grab the node that says <= float

Like this? Screenshot - d7c981c2a5b1b155bc75d75ce82495a9 - Gyazo Sorry if i’m making no sence now, been staring a screen for a while now and going a bit crazy XD

Here is a preview of sliding system I have implemented in a tutorial. you can watch the full tutorial here. [unreal running slide system][1]

308106-slide-1.gif

Slide involves continuous displacement effects, such as sliding downhill. In fact, anything involving displacement should be implemented in the Character Movement Component to ensure smoothness. But if it is fixed direction, short-lived, and not based on physics, you can also use a montage in Ability and apply an impulse at the same time, such as GA_Dash

In addition, I found a plugin related to slide based on Physics on Unreal Marketplace, which also looks pretty good.