Bug Killer

Finally managed to quash those pesky bugs in player movement that had been riling me for the last week.

The secret (of course) I’ve read a thousand times – comment the code!!!

I’ve mentioned pseudo code previously, but it has really helped in this endeavour.

By splitting each area of the code into methods to work on and debug as I go, I’ve managed to iron out the bugs in the movement.

Now my code is really neat and well annotated, and it works, at least so far.

Much more to do but this has been a great step forward for me in terms of the way I organise my logic and refactor my code.

Next step is to integrate the look function into the script and hook that up to the crouch method.