From 56dfcaf2aa2327012f88cebed2b18815891a7846 Mon Sep 17 00:00:00 2001 From: ProtoSharkk Date: Mon, 21 Oct 2024 21:50:20 -0700 Subject: [PATCH] Dash now goes in correct direction --- Assets/Teo.cs | 4 ++-- Assets/whiteteotiles.jpg.meta | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Assets/Teo.cs b/Assets/Teo.cs index aae37ce..144a025 100644 --- a/Assets/Teo.cs +++ b/Assets/Teo.cs @@ -61,8 +61,8 @@ public class Teo : MonoBehaviour if (Time.fixedTime-lastDashTime < dashCooldownSeconds) return; lastDashTime = Time.fixedTime; transform.position += new Vector3( - Input.mousePosition.x - Screen.width, - Input.mousePosition.y - Screen.height, + Input.mousePosition.x - Screen.width/2, + Input.mousePosition.y - Screen.height/2, 0 ).normalized * dashDistance; Debug.Log(controller.linearVelocity); diff --git a/Assets/whiteteotiles.jpg.meta b/Assets/whiteteotiles.jpg.meta index 74d8e21..5a77725 100644 --- a/Assets/whiteteotiles.jpg.meta +++ b/Assets/whiteteotiles.jpg.meta @@ -134,7 +134,8 @@ TextureImporter: secondaryTextures: [] spriteCustomMetadata: entries: [] - nameFileIdTable: {} + nameFileIdTable: + whiteteotiles_0: 7415648711516331556 mipmapLimitGroupName: pSDRemoveMatte: 0 userData: