fixed texture jittering and bleeding
This commit is contained in:
@@ -3,52 +3,52 @@
|
||||
[ext_resource type="Texture2D" uid="uid://boewsqe4b5yxm" path="res://assets/textures/debug/dummy-npc-atlas.png" id="1_feq0g"]
|
||||
[ext_resource type="PackedScene" uid="uid://bu1xkt4xi58ox" path="res://scenes/dialog_trigger_area.tscn" id="2_cjcdi"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0drx1"]
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_dtvay"]
|
||||
atlas = ExtResource("1_feq0g")
|
||||
region = Rect2(0, 0, 84, 128)
|
||||
region = Rect2(0, 0, 59, 90)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gmcfr"]
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_4vo8e"]
|
||||
atlas = ExtResource("1_feq0g")
|
||||
region = Rect2(84, 0, 84, 128)
|
||||
region = Rect2(59, 0, 59, 90)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1fq5y"]
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qf4lj"]
|
||||
atlas = ExtResource("1_feq0g")
|
||||
region = Rect2(168, 0, 84, 128)
|
||||
region = Rect2(118, 0, 59, 90)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8pv6w"]
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ix2cs"]
|
||||
atlas = ExtResource("1_feq0g")
|
||||
region = Rect2(252, 0, 84, 128)
|
||||
region = Rect2(177, 0, 59, 90)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_rrbg8"]
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_y6ifs"]
|
||||
atlas = ExtResource("1_feq0g")
|
||||
region = Rect2(252, 128, 84, 128)
|
||||
region = Rect2(177, 90, 59, 90)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_dwitn"]
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tlb85"]
|
||||
atlas = ExtResource("1_feq0g")
|
||||
region = Rect2(0, 128, 84, 128)
|
||||
region = Rect2(0, 90, 59, 90)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_cg6mx"]
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_b18m1"]
|
||||
atlas = ExtResource("1_feq0g")
|
||||
region = Rect2(84, 128, 84, 128)
|
||||
region = Rect2(59, 90, 59, 90)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bk3e1"]
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_5wb27"]
|
||||
atlas = ExtResource("1_feq0g")
|
||||
region = Rect2(168, 128, 84, 128)
|
||||
region = Rect2(118, 90, 59, 90)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_rr6ht"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0drx1")
|
||||
"texture": SubResource("AtlasTexture_dtvay")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_gmcfr")
|
||||
"texture": SubResource("AtlasTexture_4vo8e")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0drx1")
|
||||
"texture": SubResource("AtlasTexture_dtvay")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1fq5y")
|
||||
"texture": SubResource("AtlasTexture_qf4lj")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"move_down",
|
||||
@@ -56,10 +56,10 @@ animations = [{
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8pv6w")
|
||||
"texture": SubResource("AtlasTexture_ix2cs")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_rrbg8")
|
||||
"texture": SubResource("AtlasTexture_y6ifs")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"move_side",
|
||||
@@ -67,16 +67,16 @@ animations = [{
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_dwitn")
|
||||
"texture": SubResource("AtlasTexture_tlb85")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_cg6mx")
|
||||
"texture": SubResource("AtlasTexture_b18m1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_dwitn")
|
||||
"texture": SubResource("AtlasTexture_tlb85")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_bk3e1")
|
||||
"texture": SubResource("AtlasTexture_5wb27")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"move_up",
|
||||
@@ -84,27 +84,23 @@ animations = [{
|
||||
}]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_rsgcw"]
|
||||
radius = 9.0
|
||||
height = 60.0
|
||||
radius = 7.99467
|
||||
height = 55.9998
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_sgrqb"]
|
||||
size = Vector2(64, 79)
|
||||
size = Vector2(54, 71)
|
||||
|
||||
[node name="base_npc" type="CharacterBody2D"]
|
||||
|
||||
[node name="animated_sprite_2d" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
scale = Vector2(0.733398, 0.733398)
|
||||
sprite_frames = SubResource("SpriteFrames_rr6ht")
|
||||
animation = &"move_down"
|
||||
frame_progress = 0.781605
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="collision_shape" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, 38)
|
||||
position = Vector2(0, 37)
|
||||
rotation = 1.57345
|
||||
shape = SubResource("CapsuleShape2D_rsgcw")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="dialog_trigger_area" parent="." instance=ExtResource("2_cjcdi")]
|
||||
file = "res://assets/lang/en/dialogue/npcs/villager_normal.json"
|
||||
@@ -112,7 +108,7 @@ title = "Debug NPC"
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="collision_shape_2d" parent="dialog_trigger_area" index="0"]
|
||||
position = Vector2(0, -10.5)
|
||||
position = Vector2(0, -6.5)
|
||||
shape = SubResource("RectangleShape2D_sgrqb")
|
||||
|
||||
[editable path="dialog_trigger_area"]
|
||||
|
Reference in New Issue
Block a user