diff --git a/Scenes/enemy_ywing.tscn b/Scenes/enemy_ywing.tscn index 3700d23..c2b1eae 100644 --- a/Scenes/enemy_ywing.tscn +++ b/Scenes/enemy_ywing.tscn @@ -51,7 +51,6 @@ offset = Vector2(0, 5.2) position = Vector2(0, 21) [node name="target_confirm" type="RayCast2D" parent="Turret"] -position = Vector2(0, -1) target_position = Vector2(-1, 873) collision_mask = 11 collide_with_areas = true diff --git a/Scripts/enemy_ywing.gd b/Scripts/enemy_ywing.gd index 6dfcb72..33748a5 100644 --- a/Scripts/enemy_ywing.gd +++ b/Scripts/enemy_ywing.gd @@ -108,7 +108,10 @@ func aim_turret(delta): target_area = target_pos func fire_turret(location,firing_solution,target_area): + get_tree().current_scene.firey_wingturret(location,firing_solution,target_area) + var test = $Turret/target_confirm.to_global(Vector2(0,0)) + #print(str(location)) #print(str(firing_solution)) #print(str(target_area))