From 50f435b5f7746e3da2632b5cf64ec6f0a524a4dd Mon Sep 17 00:00:00 2001 From: Snoweuph Date: Sat, 8 Apr 2023 23:00:44 +0200 Subject: [PATCH] Updating Testscene - Make Scaling Right - Fix Players Collision Box --- Scenes/Test.tscn | 7 +++++-- project.godot | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Scenes/Test.tscn b/Scenes/Test.tscn index 3895f10..aec238c 100644 --- a/Scenes/Test.tscn +++ b/Scenes/Test.tscn @@ -121,6 +121,7 @@ _data = { [node name="Player Movement" type="Node2D"] [node name="Map Generator" type="TileMap" parent="."] +scale = Vector2(1.5, 1.5) tile_set = ExtResource("1_s4utw") cell_quadrant_size = 32 format = 2 @@ -132,7 +133,7 @@ script = ExtResource("3_dvklj") bunny_prefab = ExtResource("4_0fyd5") [node name="Player" type="CharacterBody2D" parent="." node_paths=PackedStringArray("animation_player")] -position = Vector2(960, 512) +position = Vector2(1440, 810) collision_layer = 0 script = ExtResource("5_uv7bh") speed = 60 @@ -145,10 +146,12 @@ hframes = 8 vframes = 4 [node name="Player Collider" type="CollisionPolygon2D" parent="Player"] +position = Vector2(2, -24) polygon = PackedVector2Array(12, 32, -16, 32, -16, -24, 12, -24) [node name="Player Camera" type="Camera2D" parent="Player"] -zoom = Vector2(5, 5) +position = Vector2(-1, -25) +zoom = Vector2(3, 3) position_smoothing_enabled = true drag_horizontal_enabled = true drag_vertical_enabled = true diff --git a/project.godot b/project.godot index 99b8929..373fafb 100644 --- a/project.godot +++ b/project.godot @@ -66,6 +66,6 @@ attack={ [rendering] +textures/canvas_textures/default_texture_filter=0 renderer/rendering_method="gl_compatibility" renderer/rendering_method.mobile="gl_compatibility" -textures/canvas_textures/default_texture_filter=0