From e91f2c9f403522b22b730f777baa354b9a9cfedc Mon Sep 17 00:00:00 2001 From: LMBishop <13875753+LMBishop@users.noreply.github.com> Date: Sat, 29 Oct 2022 18:00:46 +0100 Subject: Fix bullets --- KinematicBody2D.gd | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'KinematicBody2D.gd') diff --git a/KinematicBody2D.gd b/KinematicBody2D.gd index 03dd45f..3be3afc 100644 --- a/KinematicBody2D.gd +++ b/KinematicBody2D.gd @@ -18,15 +18,10 @@ func get_input(): velocity = velocity.normalized() * speed func _physics_process(delta): - - - get_input() globals.playerPos = global_position velocity = move_and_slide(velocity) if Input.is_action_just_pressed("click"): var obj = spawn_object.instance() obj.position = get_position() - obj.position.x -= 500 - obj.position.y -= 250 - add_child(obj) + get_owner().add_child(obj) -- cgit v1.2.3-70-g09d2