9 lines
165 B
GDScript
9 lines
165 B
GDScript
extends Node2D
|
|
|
|
|
|
var speed: float = 500.0
|
|
var direction := Vector2.ZERO
|
|
|
|
|
|
func _physics_process(delta: float) -> void:
|
|
global_position += direction * speed * delta
|