roboturret resets timer when offscreen

This commit is contained in:
pennyrigate 2023-03-08 03:32:15 -05:00
parent feef4019a4
commit 00558c3e13
3 changed files with 25 additions and 8 deletions

View file

@ -19,6 +19,8 @@ func _physics_process(delta):
anims.play("turn right")
else:
anims.play("turn left")
#Do not charge up offscreen
if Game.get_sector(position) != Game.current_sector: timer.start()
func spawn_bullet():
var arrow = ArrowProjectile.instance()