Bug Fix
-Changed move_and_slide() so it has a value for slope_stop_min_velocity.
-Changed the jump animation so it is called when the player hits jump instead of when the y velocity is greater than 0.
Cleanup
-Remove player code for jumpheld variable.
-Update snowball script to use the on_ground value instead of jumpheld.
-Removed the stop skidding in air code since it was redundant.
-Fixed a variable being declared twice in the fireball script
-The jumping code is now in the _input(event) function. This is better for performance.
Bug Fix -Changed
move_and_slide()
so it has a value forslope_stop_min_velocity
. -Changed the jump animation so it is called when the player hits jump instead of when the y velocity is greater than 0. Cleanup -Remove player code forjumpheld
variable. -Update snowball script to use theon_ground
value instead ofjumpheld
. -Removed the stop skidding in air code since it was redundant. -Fixed a variable being declared twice in the fireball script -The jumping code is now in the_input(event)
function. This is better for performance.