I’m making a 2D fighting game (something like street fighters) and I have already made the camera and now I need to make the movement.
I heard that I need to use move and move to on my script but I don’t know how.
I found a post on devforum that talked about the same subject and that’s where I found out that I need to use move and move to.
The problem is that I don’t know how to use them correctly and I need some help. I don’t want entire scripts for movements, I just want some examples to how to use them.
I hope these can help you. I’ve never used Humanoid:Move(), but I have used :MoveTo(). MoveTo takes a Vector3 value in it’s parenthesis, and can be used to move a model to a specific point. Example: Model:MoveTo(Vector3.new(10, 5, -3))
After looking at the devforum post, apparently the :Move() function is similar. Use it like this: Humanoid:Move(Vector3.new(10, 5, -3)) to make the character walk to a certain point
So let’s say I switch the D button with Humanoid:Move(Vector3.new(numbers)? If that’s what I have to do, then should I do it with input user service and unbind action all movement?
Use my amazing drawing as an example. Point A represents the position you used in Humanoid:Move()
When the player holds down D, they’re going to move to the right and stop at point A.
You would want the player to keep moving to the right the entire time they’re holding D, or else the player will stop walking once they reach point A. so you would have to keep pushing Point A to the right of the player.
I can’t get it to work with userinputservice, I think the event isn’t detecting that D is being pressed because roblox automatically binds the D key to move to the right
Also, you should use :MoveTo instead of :Move for the humanoid, that is my mistake.