Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var charge_time = 0 setget _set_charge_time
- var time_limit = 300
- func Go():
- show_targets_and_stuff()
- func _process(delta):
- var FIVE = Input.is_action_pressed("ISIthingie")
- if FIVE:
- self.charge_time += delta
- func _set_charge_time(what):
- charget_time = what
- if charge_time >= time_limit:
- Go()
- charge_time = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement