[gd_scene load_steps=11 format=2] [ext_resource path="res://src/Contraptions/Triggers/FrogFreeButton.gd" type="Script" id=1] [ext_resource path="res://assets/contraption/freeButton.png" type="Texture" id=2] [ext_resource path="res://assets/contraption/freeButtonSlider.png" type="Texture" id=3] [ext_resource path="res://assets/meta/digits.png" type="Texture" id=4] [ext_resource path="res://assets/ui/sci-fi-godot-theme/sci-fi-pixel.tres" type="DynamicFont" id=5] [sub_resource type="Gradient" id=23] interpolation_mode = 2 colors = PoolColorArray( 1, 1, 1, 0.752941, 0, 0, 0, 0 ) [sub_resource type="GradientTexture2D" id=22] gradient = SubResource( 23 ) width = 60 height = 60 fill = 1 fill_from = Vector2( 0.5, 0.5 ) fill_to = Vector2( 0.155994, 0.791965 ) [sub_resource type="Animation" id=19] length = 0.001 tracks/0/type = "value" tracks/0/path = NodePath(".:position") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 0, "values": [ Vector2( 0, -7 ) ] } [sub_resource type="Animation" id=13] resource_name = "onning" length = 0.809 tracks/0/type = "value" tracks/0/path = NodePath(".:position") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 0.8 ), "transitions": PoolRealArray( 1, 2.73207 ), "update": 0, "values": [ Vector2( 0, -7 ), Vector2( 0, 7 ) ] } [sub_resource type="CircleShape2D" id=18] radius = 18.0 [node name="FrogFreeButton" type="Node2D"] z_index = -1 script = ExtResource( 1 ) [node name="Highlight" type="TextureRect" parent="."] visible = false anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 margin_left = -30.0 margin_top = -31.0 margin_right = 30.0 margin_bottom = 29.0 texture = SubResource( 22 ) [node name="Label" type="Label" parent="."] visible = false margin_left = -9.0 margin_top = -22.0 margin_right = 47.0 margin_bottom = -8.0 rect_scale = Vector2( 0.590909, 0.627907 ) custom_fonts/font = ExtResource( 5 ) text = "[free]" [node name="Button" type="Sprite" parent="."] texture = ExtResource( 2 ) __meta__ = { "_editor_description_": "YXNlcHJpdGVfd2l6YXJkX2NvbmZpZwpwbGF5ZXJ8PVNwcml0ZS9BbmltYXRpb25QbGF5ZXIKc291cmNlfD1yZXM6Ly9hc3NldHMvbmV1dHJhbCBvYmplY3QvYnV0dG9uLmFzZXByaXRlCmxheWVyfD0Kb3BfZXhwfD1GYWxzZQpvX2ZvbGRlcnw9Cm9fbmFtZXw9Cm9ubHlfdmlzaWJsZXw9RmFsc2UKb19leF9wfD0K" } [node name="Digit" type="Sprite" parent="."] position = Vector2( 0.5, 0.5 ) texture = ExtResource( 4 ) hframes = 10 [node name="Indicator" type="Sprite" parent="."] position = Vector2( 0, -7 ) texture = ExtResource( 3 ) __meta__ = { "_editor_description_": "YXNlcHJpdGVfd2l6YXJkX2NvbmZpZwpwbGF5ZXJ8PUluZGljYXRvcjIvQW5pbWF0aW9uUGxheWVyCnNvdXJjZXw9cmVzOi8vYXNzZXRzL25ldXRyYWwgb2JqZWN0L2J1dHRvblN0YXRlSW5kaWNhdG9yLmFzZXByaXRlCmxheWVyfD0Kb3BfZXhwfD1GYWxzZQpvX2ZvbGRlcnw9Cm9fbmFtZXw9Cm9ubHlfdmlzaWJsZXw9RmFsc2UKb19leF9wfD0K" } [node name="IndicatorPlayer" type="AnimationPlayer" parent="Indicator"] unique_name_in_owner = true anims/RESET = SubResource( 19 ) anims/onning = SubResource( 13 ) [node name="ActivatorArea" type="Area2D" parent="."] unique_name_in_owner = true collision_layer = 0 monitorable = false [node name="ActivatorAreaShape" type="CollisionShape2D" parent="ActivatorArea"] unique_name_in_owner = true shape = SubResource( 18 ) [node name="Timer" type="Timer" parent="."] wait_time = 0.333 one_shot = true [connection signal="area_entered" from="ActivatorArea" to="." method="_on_ActivatorArea_area_entered"] [connection signal="area_exited" from="ActivatorArea" to="." method="_on_ActivatorArea_area_exited"] [connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]