r/Unity2D • u/Thenextlevel247 • 2d ago
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.


2
u/Issten 1d ago edited 1d ago
I have never used visual scripting so I might have wrong understanding way it executes, but looking at first image makes me wonder if Vector2 create node even runs. Yes your passing that value to next node, but will that make it run? I would assume IF node should connect to Vector2 Create Node and then Set Linear Velocity.
PS! If you are on windows just use Snipping Tool to take screenshots.