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.

21 lines
523 B

  1. extends StaticBody
  2. var maker_node
  3. func init(maker):
  4. maker_node = maker
  5. var mat = get_node("MeshInstance").get_surface_material(0)
  6. mat.flags_transparent = true
  7. mat.albedo_color.a = 0.5
  8. func place():
  9. # Originally, the ghost is disabled to avoid weird physics
  10. get_node("CollisionShape").disabled = false
  11. get_node("MeshInstance").get_surface_material(0).flags_transparent = false
  12. func make_last():
  13. var mat = get_node("MeshInstance").get_surface_material(0)
  14. mat.flags_transparent = true
  15. mat.albedo_color.a = 0.9