Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. var charge_time = 0 setget _set_charge_time
  2. var time_limit = 300
  3.  
  4. func Go():
  5. show_targets_and_stuff()
  6.  
  7. func _process(delta):
  8. var FIVE = Input.is_action_pressed("ISIthingie")
  9.  
  10. if FIVE:
  11. self.charge_time += delta
  12.  
  13.  
  14. func _set_charge_time(what):
  15. charget_time = what
  16. if charge_time >= time_limit:
  17. Go()
  18. charge_time = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement