Need a way to set player x velocity

Like the title says I need a way to set the player x velocity, this feels like something that would be simple but no matter how much I search I can’t find an answer. I need this to force a gradual movement when the player gets in front of something, its like those glowing elevator things from portal 2.

When you say X, I’m assuming you mean forward/backward.

If you look inside the player, that’s exactly how the movement works.

You can also use the same code on tick to create an effect

image

forward

I meant exclusively the x velocity. I’m making a 2d game and I need a way to push the player sideways

1 Like

Then you can just absolute X ( 1,0,0 ) :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.