[gd_scene load_steps=6 format=2] [ext_resource path="res://PatrolEnemy.gd" type="Script" id=1] [ext_resource path="res://Assets/kenney_pixelplatformer/Characters/character_0016.png" type="Texture" id=2] [ext_resource path="res://Assets/kenney_pixelplatformer/Characters/character_0015.png" type="Texture" id=3] [sub_resource type="SpriteFrames" id=1] animations = [ { "frames": [ ExtResource( 3 ), ExtResource( 2 ) ], "loop": true, "name": "default", "speed": 5.0 } ] [sub_resource type="RectangleShape2D" id=2] extents = Vector2( 11, 11 ) [node name="PatrolEnemy" type="KinematicBody2D"] script = ExtResource( 1 ) [node name="AnimatedSprite" type="AnimatedSprite" parent="."] scale = Vector2( 2, 2 ) frames = SubResource( 1 ) frame = 1 playing = true [node name="RayCastWall" type="RayCast2D" parent="."] position = Vector2( 0, 23 ) enabled = true cast_to = Vector2( -17, 0 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2( -1, 12 ) shape = SubResource( 2 )