forked from team-sg/hero-mark-2
fuck it, jump particles while we are at it haha
This commit is contained in:
parent
8212e44044
commit
1d76d93aed
2 changed files with 41 additions and 1 deletions
|
@ -8,6 +8,7 @@ onready var anims = $AnimationPlayer
|
|||
onready var sword_sprite = $SwordSprite
|
||||
onready var sword_hitbox = $SwordArea
|
||||
onready var death_particles = $DeathSplatter
|
||||
onready var dust_particles = $DustParticles
|
||||
#Map
|
||||
onready var map = get_owner()
|
||||
##States
|
||||
|
@ -193,6 +194,8 @@ func check_jump():
|
|||
if current_state == State.CLIMB:
|
||||
Game.ac_climb.set_stream(null) # stop climb sound
|
||||
position.x -= sprite.scale.x * 5
|
||||
else:
|
||||
dust_particles.restart()
|
||||
anims.set_speed_scale(1)
|
||||
# Jump
|
||||
can_doublejump = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue