Could you share the file of that?
There is an issue where if a player falls off a platform the player is still manipulated and may get stuck if the platform is not horizontal facing upward. Maybe add a timer so if a player is falling for more than a second or is lower than the surface they were standing on then set their gravity to normal.
For that you could either have it set so it would destroy the gravity controller part inside the player if they’re falling too much or you can have invisible walls that can act as a void for all sides of the world so the player would still die as if they fell to the bottom of the world.
One thing I’m wondering on how to change is the sensitivity to it. You can stick to a wall with a 90 degree difference although I’m trying to make it so you have to use a ramp to change walls. Does anybody know how to change this?
Change the conditions under which you set the new gravity normal
Keep up the great work wow! Love it this looks really cool!
Hello, i have a question. How do i make Trees don’t affect gravity?
I walk to the tree an it changes the gravity to the tree.
Is their a way to prevent this sliding when you on the part but have a part of your body of the part a bit.
Pardon me if I am misunderstanding, do you mean, “Prevent sliding when hanging over the edge of the part?”
I purposely do not add any default timers or things of that nature because i don’t want to discourage unique use cases.
You can add this in very easily by using humanoid state events on the PhysicsHumanoid
.
Imagine how insane it would be to have some sort of 2D Platformer (like Super Mario Bros.) added with wallstick and gravity-control. There could be so many different puzzles and challenges to solve with only using wall-stick and the gravity controller.
I’ve tried combining the script for gravity controller and 2D Platformer scripts and it just breaks the gravity control script.
I am not sure what you did but a 2D platforming script isn’t much more complicated than having your camera angled and restricting some movements of the character…
Just edit the cameraModifier and you will be good to go.
Is there away to compress this into a single script? I have tried many times but they just crash.
To be blunt, id imagine not.
From what I remember from toying with it the controller works with both the server and the client, and concerting it onto just the server would break it and converting it onto just the client would most likely break it, in addition to making it unsecured.
The wall stick cannot be a single script b/c of this. The gravity controller however can since it’s entirely run on the client.
As for putting it all together… It’s possible, but i have no idea why you’d want to do that.
Can you compress the gravity controller?
The cameraModifier script and movementModifier script still work. It makes it look like a real, 2D platform we. However, the Gravity Controller no longer takes effect. When walking up a ramp, the character does not automatically “stick” to the new surface, rather it walks up the ramp like a normal character would without the Gravity Controller.
I just thought of this but if we combined this with shooter games this would get a lot more interesting. You have maps that go upside down and right side up creating many pathways and crazy game play.
That is a good point and you can make the bullets bounce off the walls but there is one problem, the map has to be inside of a cube or at least an invisible cube that has kill barriers. But still a great idea