roboturret resets timer when offscreen
This commit is contained in:
parent
feef4019a4
commit
00558c3e13
3 changed files with 25 additions and 8 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue