Wall sliding!
|
Today I was busy doing other stuff and therefore I did not have much time to program. But I managed to squeeze in some time and finish the last variable for the players basic movement, wall sliding. The player now slides down slower if he is touching a wall, in comparison to just falling faster with gravity. The sliding works by applying an small upwards force when the player is touching a wall and has a negative velocity value on Y-axis. I will most likely leave the player programming for now because all the basic movement is complete. Later i will work on his Combat and Spells but for now i will start with stuff like Hazards, Enemies and Collectibles. |