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
515 B

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