fixed bug where arrows wouldnt spawn when player was on a different y sector

This commit is contained in:
penelope 2023-01-27 01:59:30 -05:00
parent 01d2662734
commit 8e08495b03
2 changed files with 5 additions and 2 deletions

View file

@ -10,7 +10,7 @@ var direction = 1.0
#Edge to check culling, if this edge is offscreen, delete the arrow
onready var cull_edge = Vector2(5 * direction,0)
onready var player = get_parent().get_node("Player")
onready var initial_sector = Game.get_sector(player.global_position)
onready var initial_sector = Game.current_sector
func _ready():
#Flip depending on direction