99[ext_resource type ="Texture2D" uid ="uid://daymgmvarx2ew" path ="res://scenes/game_elements/characters/npcs/components/townie-idle-legs_003.dy_-12.png" id ="6_dstmm" ]
1010[ext_resource type ="Texture2D" uid ="uid://0t1eptqlcb8t" path ="res://scenes/game_elements/characters/npcs/components/townie-idle-body_001.png" id ="6_u5ew7" ]
1111[ext_resource type ="Texture2D" uid ="uid://dlvcbntsncg18" path ="res://scenes/game_elements/characters/npcs/components/townie-idle-body_002.png" id ="6_vqjnd" ]
12+ [ext_resource type ="Texture2D" uid ="uid://cuwh4nnfg4t3t" path ="res://scenes/game_elements/characters/npcs/components/townie-walk-legs_001.png" id ="7_kccyr" ]
13+ [ext_resource type ="Texture2D" uid ="uid://bxmhj36273qdl" path ="res://scenes/game_elements/characters/npcs/components/townie-walk-legs_002.dy_-6.png" id ="8_syy7w" ]
14+ [ext_resource type ="Texture2D" uid ="uid://47367qxj6u04" path ="res://scenes/game_elements/characters/npcs/components/townie-walk-legs_003.dy_-12.png" id ="9_4rgc5" ]
1215[ext_resource type ="Texture2D" uid ="uid://dktchu38pxnxl" path ="res://scenes/game_elements/characters/npcs/components/townie-idle-head_001.png" id ="9_82egq" ]
1316[ext_resource type ="Texture2D" uid ="uid://bucvumn3fkygf" path ="res://scenes/game_elements/characters/npcs/components/townie-idle-hair_001.png" id ="9_vqjnd" ]
1417[ext_resource type ="Texture2D" uid ="uid://bfothmxms5oo7" path ="res://scenes/game_elements/characters/npcs/components/townie-idle-head_003.png" id ="9_ynrks" ]
18+ [ext_resource type ="Script" uid ="uid://dy68p7gf07pi3" path ="res://scenes/game_logic/sprite_behaviors/character_sprite_behavior.gd" id ="10_syy7w" ]
1519[ext_resource type ="Texture2D" uid ="uid://iq21xkckyvi1" path ="res://scenes/game_elements/characters/npcs/components/townie-idle-body_003.dx_-4.dy_-16.png" id ="10_tidpj" ]
1620[ext_resource type ="Texture2D" uid ="uid://b5o2dw3xj2uus" path ="res://scenes/game_elements/characters/npcs/components/townie-idle-head_002.png" id ="10_vqjnd" ]
1721[ext_resource type ="Texture2D" uid ="uid://b4y4gg7xukeeg" path ="res://scenes/game_elements/characters/npcs/components/townie-idle-hair_002.png" id ="10_ynrks" ]
@@ -35,6 +39,18 @@ region = Rect2(96, 0, 96, 96)
3539atlas = ExtResource ("6_dstmm" )
3640region = Rect2 (192 , 0 , 96 , 96 )
3741
42+ [sub_resource type ="AtlasTexture" id ="AtlasTexture_syy7w" ]
43+ atlas = ExtResource ("9_4rgc5" )
44+ region = Rect2 (0 , 0 , 96 , 96 )
45+
46+ [sub_resource type ="AtlasTexture" id ="AtlasTexture_4rgc5" ]
47+ atlas = ExtResource ("9_4rgc5" )
48+ region = Rect2 (96 , 0 , 96 , 96 )
49+
50+ [sub_resource type ="AtlasTexture" id ="AtlasTexture_umw6f" ]
51+ atlas = ExtResource ("9_4rgc5" )
52+ region = Rect2 (192 , 0 , 96 , 96 )
53+
3854[sub_resource type ="SpriteFrames" id ="SpriteFrames_beu7u" ]
3955resource_local_to_scene = true
4056animations = [{
@@ -54,6 +70,29 @@ animations = [{
5470"loop" : true ,
5571"name" : &"idle" ,
5672"speed" : 10.0
73+ }, {
74+ "frames" : [{
75+ "duration" : 1.0 ,
76+ "texture" : SubResource ("AtlasTexture_syy7w" )
77+ }, {
78+ "duration" : 1.0 ,
79+ "texture" : SubResource ("AtlasTexture_4rgc5" )
80+ }, {
81+ "duration" : 1.0 ,
82+ "texture" : SubResource ("AtlasTexture_umw6f" )
83+ }, {
84+ "duration" : 1.0 ,
85+ "texture" : SubResource ("AtlasTexture_syy7w" )
86+ }, {
87+ "duration" : 1.0 ,
88+ "texture" : SubResource ("AtlasTexture_umw6f" )
89+ }, {
90+ "duration" : 1.0 ,
91+ "texture" : SubResource ("AtlasTexture_4rgc5" )
92+ }],
93+ "loop" : true ,
94+ "name" : &"walk" ,
95+ "speed" : 10.0
5796}]
5897
5998[sub_resource type ="AtlasTexture" id ="AtlasTexture_beu7u" ]
@@ -185,9 +224,17 @@ autoplay = "idle"
185224[node name ="RandomTextureSpriteBehavior" type ="Node2D" parent ="AnimatedSprite2DLegs" unique_id =471097323 node_paths =PackedStringArray ("sprite" )]
186225script = ExtResource ("5_8nfuc" )
187226textures = Array[Texture2D]([ExtResource ("4_4gc0b" ), ExtResource ("5_yd672" ), ExtResource ("6_dstmm" )])
227+ walk_textures = Array[Texture2D]([ExtResource ("7_kccyr" ), ExtResource ("8_syy7w" ), ExtResource ("9_4rgc5" )])
188228sprite = NodePath (".." )
189229metadata/_custom_type_script = "uid://boyesrjdix688"
190230
231+ [node name ="CharacterSpriteBehavior" type ="Node2D" parent ="AnimatedSprite2DLegs" unique_id =1671495161 node_paths =PackedStringArray ("character" , "sprite" )]
232+ position = Vector2 (3 , 30 )
233+ script = ExtResource ("10_syy7w" )
234+ character = NodePath ("../.." )
235+ sprite = NodePath (".." )
236+ metadata/_custom_type_script = "uid://dy68p7gf07pi3"
237+
191238[node name ="AnimatedSprite2DBody" type ="AnimatedSprite2D" parent ="AnimatedSprite2DLegs" unique_id =2098127821 ]
192239material = ExtResource ("1_nj51j" )
193240instance_shader_parameters/shade_high_new = Color (0.91999996 , 0.91999996 , 0.2 , 1 )
@@ -209,6 +256,12 @@ script = ExtResource("5_8nfuc")
209256textures = Array[Texture2D]([ExtResource ("6_u5ew7" ), ExtResource ("6_vqjnd" ), ExtResource ("10_tidpj" )])
210257sprite = NodePath (".." )
211258
259+ [node name ="CharacterSpriteBehavior" type ="Node2D" parent ="AnimatedSprite2DLegs/AnimatedSprite2DBody" unique_id =273990310 node_paths =PackedStringArray ("character" , "sprite" )]
260+ script = ExtResource ("10_syy7w" )
261+ character = NodePath ("../../.." )
262+ sprite = NodePath (".." )
263+ metadata/_custom_type_script = "uid://dy68p7gf07pi3"
264+
212265[node name ="AnimatedSprite2DHead" type ="AnimatedSprite2D" parent ="AnimatedSprite2DLegs/AnimatedSprite2DBody" unique_id =421503015 ]
213266material = ExtResource ("1_nj51j" )
214267instance_shader_parameters/shade_high_new = Color (0.91999996 , 0.91999996 , 0.2 , 1 )
@@ -231,6 +284,12 @@ textures = Array[Texture2D]([ExtResource("9_82egq"), ExtResource("10_vqjnd"), Ex
231284sprite = NodePath (".." )
232285metadata/_custom_type_script = "uid://boyesrjdix688"
233286
287+ [node name ="CharacterSpriteBehavior" type ="Node2D" parent ="AnimatedSprite2DLegs/AnimatedSprite2DBody/AnimatedSprite2DHead" unique_id =1897959413 node_paths =PackedStringArray ("character" , "sprite" )]
288+ script = ExtResource ("10_syy7w" )
289+ character = NodePath ("../../../.." )
290+ sprite = NodePath (".." )
291+ metadata/_custom_type_script = "uid://dy68p7gf07pi3"
292+
234293[node name ="AnimatedSprite2DHair" type ="AnimatedSprite2D" parent ="AnimatedSprite2DLegs/AnimatedSprite2DBody/AnimatedSprite2DHead" unique_id =2123781958 ]
235294sprite_frames = SubResource ("SpriteFrames_m2wva" )
236295animation = &"idle"
@@ -242,3 +301,9 @@ script = ExtResource("5_8nfuc")
242301textures = Array[Texture2D]([ExtResource ("9_vqjnd" ), ExtResource ("10_ynrks" ), ExtResource ("11_iqfub" ), ExtResource ("12_4gc0b" ), ExtResource ("18_dstmm" )])
243302sprite = NodePath (".." )
244303metadata/_custom_type_script = "uid://boyesrjdix688"
304+
305+ [node name ="CharacterSpriteBehavior" type ="Node2D" parent ="AnimatedSprite2DLegs/AnimatedSprite2DBody/AnimatedSprite2DHead/AnimatedSprite2DHair" unique_id =280440134 node_paths =PackedStringArray ("character" , "sprite" )]
306+ script = ExtResource ("10_syy7w" )
307+ character = NodePath ("../../../../.." )
308+ sprite = NodePath (".." )
309+ metadata/_custom_type_script = "uid://dy68p7gf07pi3"
0 commit comments