We need a boolean to tell if we are wall sliding or not
We need a boolean to tell if we are wall sliding or not
We need a friction variable to represent the speed at which we slide down the wall:
We need a friction variable to represent the speed at which we slide down the wall:
The wall slide function sets is_wall_sliding to true or false and activate the friction (essentially just reduces the fall speed)
The wall slide function sets is_wall_sliding to true or false and activate the friction (essentially just reduces the fall speed)
If the player is wall sliding
If the player is wall sliding
Play the wall slide animation.
Play the wall slide animation.
Finally remember to call the is_wall_sliding function in process.
Finally remember to call the is_wall_sliding function in process.