Alzter / TuxBuilder

A Godot re-implementation of SuperTux
GNU General Public License v3.0
212 stars 28 forks source link

Fix bug in player script and code cleanup #18

Closed skyace65 closed 5 years ago

skyace65 commented 5 years ago

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.