player.tscn: scholar of the first bullet casings
This commit is contained in:
parent
79cbd62a69
commit
bc57ba4171
45 changed files with 1429 additions and 113 deletions
|
@ -22,7 +22,7 @@ func _physics_process(delta):
|
|||
position.y += fall_speed
|
||||
#Crush the player
|
||||
for area in crush_area.get_overlapping_areas():
|
||||
if area.is_in_group("player"):
|
||||
if area.is_in_group("player_hitbox"):
|
||||
var player = area.get_parent()
|
||||
if player.is_on_floor():
|
||||
player.die()
|
||||
|
@ -31,7 +31,7 @@ func _physics_process(delta):
|
|||
anims.play("disappear")
|
||||
|
||||
func _on_Area2D_area_entered(area):
|
||||
if area.is_in_group("player"):
|
||||
if area.is_in_group("player_hitbox"):
|
||||
fall_timer.start()
|
||||
sprite.frame = 1
|
||||
|
||||
|
@ -59,5 +59,5 @@ func _on_FallTimer_timeout():
|
|||
|
||||
|
||||
#func _on_Area2D_area_exited(area):
|
||||
# if area.is_in_group("player") && graphic == Graphics.GRAVEYARD:
|
||||
# if area.is_in_group("player_hitbox") && graphic == Graphics.GRAVEYARD:
|
||||
# sprite.frame = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue