added skelarcher
This commit is contained in:
parent
9827e2d9b4
commit
14c1f4e7e7
3 changed files with 12 additions and 3 deletions
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue