Advertisement
gdcoder

Godot Process Timing

Nov 19th, 2021
580
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const PERIOD = 2.0 # seconds
  2.  
  3. var time_count = 0.0
  4.  
  5. func _process(delta):
  6.     time_count += delta
  7.     if time_count >= PERIOD:
  8.         time_count = 0.0
  9.         print("Do pushup")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement