9 lines
207 B
GDScript
9 lines
207 B
GDScript
extends Enemy
|
|
|
|
func _physics_process(delta: float) -> void:
|
|
position.x += move_speed * delta
|
|
if position.x > 340.0: position.x = -22.0
|
|
|
|
|
|
func _on_timer_timeout() -> void:
|
|
shoot(%Marker2D.global_position)
|