Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends Node2D
- var is_pressed = false
- func _ready():
- set_process(true)
- pass
- func _process(delta):
- if Input.is_action_pressed("fire"):
- if is_pressed == false:
- print("fire")
- is_pressed = true
- else:
- is_pressed = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement