summaryrefslogtreecommitdiffstats
path: root/player.tscn
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-11-14 10:36:23 +0200
committerJan Tuomi <jan@jantuomi.fi>2025-11-14 10:36:23 +0200
commitbce80184961866e0efcc227becf15fe66bd99428 (patch)
treeaca6badeaf817f8fa7339cc0b7482d22242d6652 /player.tscn
parent5afd1a00a58d53c56ecc003ff0705c0a8773b19f (diff)
Fix movement stalling issue when both directions are pressed
Diffstat (limited to 'player.tscn')
-rw-r--r--player.tscn5
1 files changed, 4 insertions, 1 deletions
diff --git a/player.tscn b/player.tscn
index 077ceb8..4ee3ad4 100644
--- a/player.tscn
+++ b/player.tscn
@@ -69,7 +69,7 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
-"texture": SubResource("AtlasTexture_wtcfe")
+"texture": SubResource("AtlasTexture_0e48y")
}],
"loop": true,
"name": &"idle",
@@ -110,6 +110,9 @@ sprite_frames = SubResource("SpriteFrames_rj586")
animation = &"idle"
autoplay = "idle"
+[node name="Camera2D" type="Camera2D" parent="AnimatedSprite2D"]
+position = Vector2(0, -15)
+
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 3)
shape = SubResource("RectangleShape2D_onrkg")