Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I go about making a 2D-game walking system?

Asked by 5 years ago

Ok, so, what I mean by 2D game walking system, 1.) Only be able to walk left-right, (and jump, but that's a whole separate system.) 2.) When you walk a different direction, have the character NOT rotate their whole avatar, (as it does currently, I'm sure you are all well aware of how your character turns around if you walk a different direction.)

What I've currently done is disable left, forward, and backwards walking, and tried to make my own left walking system, but honestly it didn't work out. (If anyone knows how to do that, that would be great, if you can share it.)

State of the game currently: Camera is stuck in a constant position facing the character, (follows them, etc. just faces the character) Left, forwards, and backwards walking are all disabled, (I can enable them if you know what to do, and tell me how.)

I'm just currently out of ideas on how/what to even attempt to make it work. How would I go about making this?

0
You're best bet is to go into the pre-existing code for character movement and such, and disable the stuff you don't need. davidgingerich 603 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

Reading this will really help answer some of your questions:

https://developer.roblox.com/articles/Side-Scrolling-Camera-View

0
I can't accept my own answer, but yours did help me, thank you. ImperiumDomini2 39 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

Apparently it's a humanoid property that can allow you to turn off rotating! https://developer.roblox.com/api-reference/property/Humanoid/AutoRotate Thank you all for your time, and sorry if I have inconvenienced you.

Answer this question