[gd_scene load_steps=11 format=2] [ext_resource path="res://component/entity/octo/Octo.gd" type="Script" id=1] [ext_resource path="res://component/entity/octo/enemySwimming_1.png" type="Texture" id=2] [ext_resource path="res://component/entity/octo/enemySwimming_2.png" type="Texture" id=3] [ext_resource path="res://component/entity/octo/enemyFlyingAlt_1.png" type="Texture" id=4] [ext_resource path="res://component/entity/octo/enemyFlyingAlt_2.png" type="Texture" id=5] [ext_resource path="res://component/entity/octo/enemyWalking_1.png" type="Texture" id=6] [ext_resource path="res://component/entity/octo/enemyWalking_2.png" type="Texture" id=7] [sub_resource type="PhysicsMaterial" id=1] friction = 0.1 bounce = 0.8 [sub_resource type="SpriteFrames" id=2] animations = [ { "frames": [ ExtResource( 2 ), ExtResource( 3 ) ], "loop": true, "name": "swim", "speed": 4.0 }, { "frames": [ ExtResource( 4 ), ExtResource( 5 ) ], "loop": true, "name": "fly", "speed": 3.0 }, { "frames": [ ExtResource( 6 ), ExtResource( 7 ) ], "loop": true, "name": "walk", "speed": 5.0 } ] [sub_resource type="CapsuleShape2D" id=3] radius = 24.0469 height = 52.8654 [node name="Enemy" type="RigidBody2D"] physics_material_override = SubResource( 1 ) gravity_scale = 0.0 script = ExtResource( 1 ) __meta__ = { "_edit_group_": true } [node name="AnimatedSprite" type="AnimatedSprite" parent="."] scale = Vector2( 0.75, 0.75 ) frames = SubResource( 2 ) animation = "fly" [node name="HitBox" type="CollisionShape2D" parent="."] rotation = 1.5708 shape = SubResource( 3 ) [node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."] rect = Rect2( -50, -60, 100, 120 ) [connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]