Restrict Diagonal Movement

I want to try and make a game with 2D game movement, which would also mean that I have to restrict diagonal movement for stuff like the animations to look accurate.

The issue is that i’ve never seen some kind of way of doing this. [After going to different posts with similiar problems i’ve noticed that some of the replies mentioned MoveVector, so I tried to look it up and didn’t find an api reference for it.]

[Would the usage a movement vector solve this problem, if yes, how do i use it, if no, is there another way of doing this?]

1 Like

https://developer.roblox.com/en-us/api-reference/function/Humanoid/Move
https://developer.roblox.com/en-us/api-reference/function/Humanoid/MoveTo

“MoveVector” is likely in reference to “humanoid:Move(Vector3.new(0, 0, 0))”.

3 Likes

Thanks, now that I know what this means, I’ll put that part of the post in brackets.

1 Like