goodnight_jellybean/godot/animated_frog.tscn

37 lines
1.3 KiB
Plaintext

[gd_scene load_steps=8 format=2]
[ext_resource path="res://assets/frog.tscn" type="PackedScene" id=1]
[ext_resource path="res://assets/creature_animation.tscn" type="PackedScene" id=2]
[ext_resource path="res://animated_creature.gd" type="Script" id=3]
[ext_resource path="res://CursorInteractArea.tscn" type="PackedScene" id=4]
[ext_resource path="res://assets/audio/croak.ogg" type="AudioStream" id=5]
[ext_resource path="res://Sound.gd" type="Script" id=6]
[sub_resource type="BoxShape" id=1]
[node name="AnimatedFrog" type="Spatial"]
script = ExtResource( 3 )
[node name="creature" parent="." instance=ExtResource( 2 )]
[node name="frog" parent="creature/animated" index="0" instance=ExtResource( 1 )]
[node name="StaticBody" type="StaticBody" parent="."]
[node name="CollisionShape" type="CollisionShape" parent="StaticBody"]
transform = Transform( 2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 1.39319, 0.163039 )
shape = SubResource( 1 )
[node name="GoalInteractArea" parent="." instance=ExtResource( 4 )]
transform = Transform( 4, 0, 0, 0, 3.046, 0, 0, 0, 4, 0, 1.29309, 0 )
on_interact_func = "_on_Cursor_goal"
call_array = [ "frog" ]
[node name="Sound" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 5 )
script = ExtResource( 6 )
[connection signal="interact" from="GoalInteractArea" to="Sound" method="play_sound"]
[editable path="creature"]