parallel.gd 388 B

123456789101112131415161718192021
  1. extends Node2D
  2. # Declare member variables here. Examples:
  3. # var a = 2
  4. # var b = "text"
  5. var i = 0
  6. # Called when the node enters the scene tree for the first time.
  7. func _ready():
  8. pass # Replace with function body.
  9. func _process(delta):
  10. print("running in parallel", i)
  11. i += 1
  12. # Called every frame. 'delta' is the elapsed time since the previous frame.
  13. #func _process(delta):
  14. # pass