9 lines
146 B
GDScript3
9 lines
146 B
GDScript3
|
extends Area2D
|
||
|
|
||
|
@export var speed: int = 1000
|
||
|
var direction: Vector2 = Vector2.UP
|
||
|
|
||
|
func _process(delta):
|
||
|
|
||
|
position += direction * speed * delta
|