Added something I think

This commit is contained in:
Debugman committed 2026-10-17 19:56:32 -05:00
1 parent a5ce3103f4
commit ac0f7f1d08
18 files changed
+499 -24

No files matched your search

+14 -2
View File
@@ -98,8 +98,17 @@ func _process(delta: float) -> void:
elif direction > 0:
$Sprite2D.flip_h = false
$Sprite2D/HatSprite.flip_h = false
if Input.is_action_just_pressed("dash") and dashes > 0:
if Input.is_action_pressed("dash_down") and is_on_floor():
print("Crouching")
$Sprite2D.play("crouch")
print("MODULATE: " + str($Parallax2D/Sprite2D.modulate))
$Parallax2D/Sprite2D.modulate = $Parallax2D/Sprite2D.modulate - Color(
move_toward(Color.GREEN.r,$Parallax2D/Sprite2D.modulate.r,0.001),
move_toward(Color.GREEN.g,$Parallax2D/Sprite2D.modulate.g,0.001),
move_toward(Color.GREEN.b,$Parallax2D/Sprite2D.modulate.b,0.001)
)
elif Input.is_action_just_pressed("dash") and dashes > 0:
dashing = true
dashes -= 1
velocity = Vector2(
@@ -120,6 +129,9 @@ func _process(delta: float) -> void:
velocity.x = move_toward(velocity.x, 0, FRICTION)
$Sprite2D.play("idle")
$Sprite2D/HatSprite.play("idle")
$Parallax2D/Sprite2D.modulate = Color(1,1,1,1)
#print("PLAYER X POSITION: " + str(position.y))
#Falling to death.