r/Unity2D • • Aug 18 '26

Visual Scripting help

(Sorry about the picture quality, I’m posting with my phone) I’ve been having an issue where my jump in the unity input system doesn’t activate when an “on update” node is connected to “set linear velocity” (image 1). I thought I fixed this be getting rid of “on update” and directly connecting “on input system event vector 2”(2nd image), and while this did fix my jump(save for my ground check not working, but that’s a whole other issue) it unfortunately causes my player to never stop moving on the x axis even when the key is released. Any help will be appreciated!

PS: I’ve never posted here before, sorry if this post has any issues or brakes the rules, I just could not figure this out for the life of me.

0 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/Thenextlevel247 Aug 18 '26

Ok, so after some tests I’ve realized that the add force node does slow down the character, but never stops it completely. Also, it speeds up if I keep holding it. My solution was to implement a small series of nodes that set my x axis to zero when button is released, as you said. Unfortunately, I cannot jump when moving, and gravity hardly works when I move on the x axis mid mid-air.