Updated enemy bullet to correctly instantiate.
This commit is contained in:
parent
da65849c27
commit
e582ed7ec3
2 changed files with 20 additions and 0 deletions
|
|
@ -1,5 +1,13 @@
|
|||
extends Area2D
|
||||
|
||||
@export var speed = 150
|
||||
|
||||
func start(pos):
|
||||
position = pos
|
||||
|
||||
func _process(delta):
|
||||
position.y += speed * delta
|
||||
|
||||
func _on_visible_on_screen_notifier_2d_screen_exited():
|
||||
queue_free()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue