Change of Friction
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user