Making Movement


Moving

I was the one in charge of coding our game and my first goal was to make the player move.

Since our game was first person you also needed to be able to move the camera, so i worked on that first. I realized i had another game with a camera and movement system so i thought it would be easy. First, I imported scripts some from my old game like camera movement and the player controller and put them in. Finally, when i actually tried using them--Nothing worked.

My code for my old game had to be tweaked. First of all my old game had many elements not needed in our game, so i had to remove the parts of code that referenced those. Now at least it would run and the camera movement worked. But the player was still a rock. Turns out i accidentally deleted the movement code while deleting the supposedly "unneeded" code. 

Ok, i re-added that and now the player moves. Finally(again), I try to do some platforming and--Nothing worked

I  ALSO forgot my old game didn't have jumping and i never tried to jump until now. A few minutes of code later the player can finally jump around freely. I also added a double jump to the game because i felt that it would make it more fun to have greater control in the air. Just ignore the fact it that you get an extra jump if you start on the ground(It's not a bug, It's a feature).

Leave a comment

Log in with itch.io to leave a comment.