No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

foreground.gd 375B

12345678910111213141516171819
  1. extends Node2D
  2. onready var texture : TextureRect = $TextureRect
  3. var moving = false
  4. func stop():
  5. moving = false
  6. texture.material.set_shader_param("scroll_speed", 0)
  7. func start():
  8. moving = true
  9. texture.material.set_shader_param("scroll_speed", 0.2)
  10. func _process(delta):
  11. if get_tree().paused and moving:
  12. stop()
  13. elif not get_tree().paused and not moving:
  14. start()