Whip it into shape

As expected there were a lot of things to improve and fix for the whip. It’s only fitting that the main mechanic I first started with is going to be one of the last things I touch.

I made sure that there was only a reaction on physics objects. Since the whip can affect some interactable objects there was an extra animation that shouldn’t have been playing.

I changed the default of the whip to the left mouse button because I want it to be clear that it is the main weapon of the character. The keys can be easily changed anyway.

The biggest problem I found was that if the player pressed the whip button once and did nothing then it wouldn’t reset. Meaning that the whip “attempt” wouldn’t fire again. After a lot of testing and brute force on my part, I added a check when the player released the whip button to see if the whip was a success. If not then the whip will “reset.”

I’ve also started to improve on when the whip is in rest mode. It doesn’t look great at the moment but I’m working on it.

Leave a comment