forked from team-sg/hero-mark-2
make collectibles always use full hitbox
This commit is contained in:
parent
e4cc684603
commit
ca947c2f09
9 changed files with 26 additions and 17 deletions
|
@ -6,9 +6,10 @@ func _ready():
|
|||
#Sync all coinframes
|
||||
$AnimatedSprite.play()
|
||||
|
||||
func _on_Area2D_area_entered(area):
|
||||
|
||||
func _on_Area2D_body_entered(body: Node) -> void:
|
||||
#Collect
|
||||
if area.is_in_group("player_hitbox"):
|
||||
if body.is_in_group("player"):
|
||||
Game.keys += value
|
||||
Game.score += 5
|
||||
Audio.play_sound(Audio.a_gold,Audio.ac_collectible)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue