diff --git a/desk.tscn b/desk.tscn index dc6b38a..19ef5ec 100644 --- a/desk.tscn +++ b/desk.tscn @@ -177,6 +177,8 @@ position = Vector2(240, 210) sprite_frames = SubResource("SpriteFrames_g470s") animation = &"Press" autoplay = "Idle" +frame = 5 +frame_progress = 1.0 [node name="Numpad" type="Node2D" parent="." node_paths=PackedStringArray("progress_bar", "reminder_timer", "error_audio_player", "success_audio_player")] position = Vector2(640, 570) diff --git a/gavel.gd b/gavel.gd index 1f4756e..ba06675 100644 --- a/gavel.gd +++ b/gavel.gd @@ -32,6 +32,8 @@ func _on_texture_button_button_down() -> void: $TextureButton.mouse_default_cursor_shape = Control.CURSOR_DRAG audio_player.play() gavel_hit.emit() + if $GavelAnimations.animation == "Press": + $GavelAnimations.frame = 0 $GavelAnimations.play("Press") func _on_texture_button_mouse_entered() -> void: