mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-13 05:52:24 +02:00
fixed no target bug
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user