Change of Friction

This commit is contained in:
tiffanyfrias10
2021-11-30 21:21:58 -06:00
parent 73efc1ffea
commit 34f7407d6a
6 changed files with 29 additions and 22 deletions

View File

@@ -85,11 +85,15 @@ func _input(event: InputEvent) -> void:
func _on_Hitbox_area_entered(area: Area2D) -> void:
print(area.name)
if area.name.begins_with("coin"):
print("COIN")
if not 'enemies' in area.get_parent().get_groups() or area.name.begins_with("detection") or (not area.name.begins_with("snowball")) :
return
if area.name.begins_with("snowball"):
print("SNOWBALL FIGHT")
if health_index != 0:
health_index -= 1