Basic Movement fixes

This commit is contained in:
Marco Giacomelli 2024-02-26 17:35:40 +01:00
commit c9b3164362
5 changed files with 66 additions and 11 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=20 format=3 uid="uid://bv451a8wgty4u"]
[gd_scene load_steps=21 format=3 uid="uid://bv451a8wgty4u"]
[ext_resource type="Script" path="res://Scripts/PlayerMovement.cs" id="1_fwei5"]
[ext_resource type="Texture2D" uid="uid://dowueaq2rixdk" path="res://Sprites/Cirno2.0.png" id="2_uhufh"]
@ -19,7 +19,7 @@
[ext_resource type="Texture2D" uid="uid://dgnbwg4my1jfe" path="res://Sprites/Cirno2.15.png" id="17_et2yp"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2gpmr"]
size = Vector2(126, 127)
size = Vector2(6, 8)
[sub_resource type="SpriteFrames" id="SpriteFrames_ur7bf"]
animations = [{
@ -100,22 +100,34 @@ animations = [{
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_qui05"]
size = Vector2(20, 153)
[node name="Node2D" type="Node2D"]
position = Vector2(38, 39)
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
script = ExtResource("1_fwei5")
Speed = 1600
[node name="Sprite2D" type="Sprite2D" parent="CharacterBody2D"]
visible = false
texture = ExtResource("2_uhufh")
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
position = Vector2(0, -0.5)
shape = SubResource("RectangleShape2D_2gpmr")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="CharacterBody2D"]
scale = Vector2(15.75, 15.75)
sprite_frames = SubResource("SpriteFrames_ur7bf")
animation = &"walk_down"
frame = 1
frame_progress = 0.964336
[node name="StaticBody2D" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
position = Vector2(113, 54.5)
shape = SubResource("RectangleShape2D_qui05")
[node name="Polygon2D" type="Polygon2D" parent="StaticBody2D"]
polygon = PackedVector2Array(103, -21, 123, -22, 122, 131, 105, 131)