fix projectiles not killing player

This commit is contained in:
Haze Weathers 2023-05-10 14:34:03 -04:00
parent 7b0fb8ece5
commit e1b5c498f3
6 changed files with 9 additions and 10 deletions

View file

@ -1,18 +1,16 @@
extends Node2D
# speed to fly at
export var speed = 240.0
# group to kill
var target_group = "enemy_hitbox"
export var target_group = "enemy_hitbox"
# direction to fly
var direction = 1.0
export var direction = 1.0
# whether or not it frees on wall collision
var breaks_on_wall = true
export var breaks_on_wall = true
#Edge to check culling, if this edge is offscreen, delete the arrow
onready var cull_edge = Vector2(5 * direction,0)
onready var player = get_parent().get_node("Player")
onready var initial_sector = Game.current_sector
func _ready():

View file

@ -936,8 +936,8 @@ script = ExtResource( 8 )
[connection signal="state_entered" from="StateChart/Root/Movement/Grounded/Shooting" to="." method="_on_Shooting_state_entered"]
[connection signal="state_entered" from="StateChart/Root/Movement/Airborne" to="." method="_on_Airborne_state_entered"]
[connection signal="state_physics_processing" from="StateChart/Root/Movement/Airborne" to="." method="_process_gravity"]
[connection signal="state_physics_processing" from="StateChart/Root/Movement/Airborne/Jump" to="." method="_process_horizontal_movement"]
[connection signal="state_physics_processing" from="StateChart/Root/Movement/Airborne/Jump" to="." method="_process_jump"]
[connection signal="state_physics_processing" from="StateChart/Root/Movement/Airborne/Jump" to="." method="_process_horizontal_movement"]
[connection signal="state_entered" from="StateChart/Root/Movement/Airborne/Jump/NormalJump" to="." method="_on_NormalJump_state_entered"]
[connection signal="state_exited" from="StateChart/Root/Movement/Airborne/Jump/NormalJump" to="." method="_on_NormalJump_state_exited"]
[connection signal="state_entered" from="StateChart/Root/Movement/Airborne/Jump/LadderJump" to="." method="_on_LadderJump_state_entered"]