Dash Fix
This commit is contained in:
+1
-13
@@ -565,19 +565,7 @@ func _perform_dash():
|
||||
_dash_timer = dash_duration
|
||||
_dash_cooldown_timer = dash_cooldown
|
||||
|
||||
# Rotate character slightly forward during dash
|
||||
if _body:
|
||||
_body.rotation.x = -0.3 # Tilt forward slightly
|
||||
|
||||
# Animation is handled by the Body's animate function
|
||||
|
||||
# Reset rotation after dash
|
||||
var tween = create_tween()
|
||||
tween.tween_method(_reset_dash_rotation, -0.3, 0.0, dash_duration)
|
||||
|
||||
func _reset_dash_rotation(rotation_value: float):
|
||||
if _body:
|
||||
_body.rotation.x = rotation_value
|
||||
# Animation is handled by the Body's animate function (Jump animation plays during dash)
|
||||
|
||||
## Override hurt animation from BaseUnit
|
||||
func _play_hurt_animation():
|
||||
|
||||
Reference in New Issue
Block a user