forked from team-sg/hero-mark-2
sploosh! BZAAP!
This commit is contained in:
parent
e5859ae452
commit
9ca4cf10d2
5 changed files with 13 additions and 2 deletions
|
@ -517,11 +517,14 @@ func _on_Hitbox_body_entered(body: Node) -> void:
|
|||
if body.is_in_group("no_blood"):
|
||||
skip_blood = true
|
||||
if body.is_in_group("has_splash"):
|
||||
Game.alternate_death = Audio.a_die_splash
|
||||
var particles = SplashParticles.instance()
|
||||
particles.global_position = death_splatter_position.global_position
|
||||
particles.color = body.splash_color
|
||||
particles.emitting = true
|
||||
get_parent().add_child(particles)
|
||||
if body.is_in_group("death_zap"):
|
||||
Game.alternate_death = Audio.a_die_zap
|
||||
die()
|
||||
|
||||
|
||||
|
|
|
@ -1302,8 +1302,8 @@ align = 1
|
|||
[connection signal="state_entered" from="StateChart/Root/Movement/Teleporting" to="." method="_on_Inactive_state_entered"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Movement/Teleporting" to="." method="_on_Teleporting_state_entered"]
|
||||
[connection signal="state_exited" from="StateChart/Root/Movement/Teleporting" to="." method="_on_Inactive_state_exited"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Movement/Appearing" to="." method="_on_Inactive_state_entered"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Movement/Appearing" to="." method="_on_Appearing_state_entered"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Movement/Appearing" to="." method="_on_Inactive_state_entered"]
|
||||
[connection signal="state_exited" from="StateChart/Root/Movement/Appearing" to="." method="_on_Inactive_state_exited"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Health/Respawn" to="." method="_on_Respawn_state_entered"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Health/Dead" to="." method="_on_Dead_state_entered"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue