gay lover
This commit is contained in:
parent
4ff19610d3
commit
f44f38b58c
9 changed files with 154 additions and 96 deletions
|
|
@ -1,14 +1,15 @@
|
|||
extends Node2D
|
||||
|
||||
@export var bullet_scene: PackedScene
|
||||
|
||||
@onready var timer = $Timer
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed("shoot"):
|
||||
$Timer.start()
|
||||
_on_timer_timeout()
|
||||
elif event.is_action_released("shoot"):
|
||||
$Timer.stop()
|
||||
if event.is_action_pressed("shoot"):
|
||||
if get_parent().can_shoot == true:
|
||||
$Timer.start()
|
||||
_on_timer_timeout()
|
||||
elif event.is_action_released("shoot"):
|
||||
$Timer.stop()
|
||||
|
||||
|
||||
func _on_timer_timeout() -> void:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue