Hey,
I’ve recently been wanting to add bunnyhopping to my FPS engine. If you don’t know what this is, you can watch a video here.
If you are unable to watch to watch the video (or still don’t understand), Bunnyhopping is basically jumping while moving your mouse from left to right and pressing a and d (respectively).
I’ve looked at websites like this one which has code, but I was unable to understand it.
If you can help, that’d be awesome. Thanks for your time!
It would appear that this system uses some sort of manipulation with force, or momentum, as the character jumps a force is applied going forward, and you can actually steer which direction the character goes.
Now, I’m not sure if you use a custom rig for your engine or anything like that, but I mean, from my understanding and knowledge, I’d probably recommend using a BodyMover, like BodyForce, and then adjusting it depending on if the character is jumping and holding down A or D to tweak the force to either direction.
Not sure if this is the route you wanna go, but I think it might be worth a shot.
For your concept of “bunnyhopping”, I think it can already be done with the standard WASD movement. However, for the range in which an individual could jump horizontally, you can alter it by changing the gravity in workspace to allow them to not only jump higher, but longer distances.
That’s a good idea. Only thing to consider here is it would also have impact on the velocities of each bullet, or any other moving part. Would just have to do some tweaking with forces on these moving parts to get the gravity to look right.
Oh I actually didn’t understand what he said at first, now I get it. Yeah, I think that could work actually. Only thing I’m unsure about is what the other clients would see (would the new gravity set by the client be visible to them, like the movements of the player?)