forked from team-sg/hero-mark-2
fix projectiles not killing player
This commit is contained in:
parent
7b0fb8ece5
commit
e1b5c498f3
6 changed files with 9 additions and 10 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue