From 0b86c659e0678829564300a40afb9e9205cc7f95 Mon Sep 17 00:00:00 2001 From: Ultrablob Date: Fri, 10 May 2024 14:15:42 -0400 Subject: [PATCH] patch iamond glitch --- main.tscn | 2 +- player-iamond.tscn | 12 ++++++------ player.gd | 4 +++- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/main.tscn b/main.tscn index 5bac9d7..c46161a 100644 --- a/main.tscn +++ b/main.tscn @@ -649,7 +649,7 @@ animations = [{ }] [sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_rmvst"] -distance = 10.0 +distance = 2.0 [sub_resource type="CircleShape2D" id="CircleShape2D_bmvvy"] radius = 100.0 diff --git a/player-iamond.tscn b/player-iamond.tscn index a5c6e69..eeb7d97 100644 --- a/player-iamond.tscn +++ b/player-iamond.tscn @@ -176,29 +176,29 @@ animations = [{ [sub_resource type="Gradient" id="Gradient_urfxb"] colors = PackedColorArray(1, 0.9, 0, 1, 1, 0.9, 0, 0) -[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_lcrvh"] -height = 52.0 +[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_bf2qx"] +height = 42.0 [node name="Player" instance=ExtResource("1_l701f")] linear_damp = 2.0 script = ExtResource("2_5t06e") [node name="Sprite" type="AnimatedSprite2D" parent="." index="1"] +position = Vector2(-17, 0) scale = Vector2(2, 2) sprite_frames = SubResource("SpriteFrames_7i6wq") -animation = &"jump" +animation = &"idle" autoplay = "idle" speed_scale = -1.0 [node name="CPUParticles2D" type="CPUParticles2D" parent="." index="2"] z_index = -2 -position = Vector2(-9, 0) +position = Vector2(-27, 0) amount = 80 texture = ExtResource("5_fmfr6") gravity = Vector2(2.08165e-12, 2.08165e-12) color_ramp = SubResource("Gradient_urfxb") [node name="CollisionShape2D" type="CollisionShape2D" parent="." index="3"] -position = Vector2(19, 0) rotation = -1.5708 -shape = SubResource("CapsuleShape2D_lcrvh") +shape = SubResource("CapsuleShape2D_bf2qx") diff --git a/player.gd b/player.gd index dff4286..edd0bbf 100644 --- a/player.gd +++ b/player.gd @@ -19,10 +19,12 @@ func _ready(): if config.load("user://settings.cfg") == OK: absolute_movement = not config.get_value("config", "relative_controls") +func _integrate_forces(state): + look_at(get_global_mouse_position()) + func _physics_process(delta): if frozen: return - look_at(get_global_mouse_position()) var move_input = Input.get_axis("down", "up") var side_input = Input.get_axis("right", "left") if move_input > 0 and not moving: