fixed no target bug

This commit is contained in:
Jonas Mucke
2020-04-19 18:23:50 +02:00
parent 78af384563
commit dd227744ac
5 changed files with 40 additions and 26 deletions

View File

@@ -49,6 +49,7 @@ func _physics_process(delta):
while(totaldamage < -1):
totaldamage+=1
player_stats.health+=1
adjustPrio(player_stats.health, player_stats.max_health)
_debug_update()
if debug == true:
match movementState:
@@ -169,7 +170,7 @@ func _on_Hurtbox_area_exited(area):
func _on_Stats_no_health():
queue_free()
get_tree().change_scene("res://Menus/TitleScreen/TitleScreen.tscn")
#get_tree().change_scene("res://Menus/TitleScreen/TitleScreen.tscn")
func _on_Hitbox_area_entered(area):

View File

@@ -619,10 +619,7 @@ font_data = ExtResource( 6 )
[node name="Player" type="KinematicBody2D"]
script = ExtResource( 1 )
debug = null
ROLL_SPEED = null
FRICTION = 270
ACCELERATION = null
[node name="Kind" parent="." instance=ExtResource( 7 )]
kind = 1