A team game with an emphasis on movement (with no shooting), inspired by Overwatch and Zineth
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.

18 lines
475 B

  1. extends "res://scripts/player.gd"
  2. var is_repelling = false
  3. func _process(delta):
  4. if is_network_master():
  5. if Input.is_action_just_pressed("hero_2_switch_gravity"):
  6. # Press button twice to cancel
  7. rpc("switch_gravity")
  8. is_repelling = !is_repelling
  9. if is_repelling:
  10. get_node("RepellingHUD").set_text("/\\")
  11. else:
  12. get_node("RepellingHUD").set_text("\\/")
  13. sync func switch_gravity():
  14. var area = get_node("Area")
  15. area.set_gravity(-area.get_gravity())