Movement


Week 1: Movement

The focus for this week in development is movement. To do this I will reuse the eight-directional movement script from tutorials and add a roll function that will also be inside the movement script. At the start, the main priority was to figure out the size of the player in comparison to the camera so I could picture how fast the player would be moving through the world. Once I had the camera and player size selected, I used the eight-directional movement script and adjusted the speed to something that felt right. Then I implemented a piece of code that makes the player move faster when space is pressed which will be the roll key. it is a relatively small difference, but it does make the player faster.


This is John, John is a cube and my humble test subject

Next, I implemented a cooldown to prevent the player from spamming the roll key being fully invincible and always having a speed bonus. How this works is that whenever a player starts a roll 2 timers are started. one is how long the benefits of the roll will last and one is how long till the next roll can be performed. When the time until the next roll is possible, the timer is longer than the animation it works as a cooldown preventing the player from rolling again for a short period


John learned how to walk

This week's Devlog will be a shorter one as I have not had much time to implement extra features outside of movement and because the movement in this game is quite simple but as weeks go on these will get lengthier and more in-depth.

- Thank you for reading, Sam Geoghegan

Leave a comment

Log in with itch.io to leave a comment.