added skelarcher

This commit is contained in:
pennyrigate 2023-01-20 18:05:39 -05:00
parent 9827e2d9b4
commit 14c1f4e7e7
3 changed files with 12 additions and 3 deletions

View file

@ -49,5 +49,7 @@ func _on_Hitbox_area_entered(area):
else:
# kill targeted node
target.die()
Game.arrows = max(0, Game.arrows - 1) # clamp arrows above 0
#decrease arrows if enemy killed
if target_group == "enemy_hitbox":
Game.arrows = max(0, Game.arrows - 1) # clamp arrows above 0
queue_free()

View file

@ -201,7 +201,7 @@ func check_jump():
#Detach ladder
if current_state == State.CLIMB:
Game.ac_climb.set_stream(null) # stop climb sound
position.x -= sprite.scale.x * 5
position.x -= sprite.scale.x * 4
else:
dust_particles.restart()
anims.set_speed_scale(1)