godot-ultimate-tutorial/scenes/enemies/drone.gd

7 lines
125 B
GDScript3
Raw Normal View History

2023-08-15 20:51:29 +00:00
extends CharacterBody2D
func _process(_delta):
var direction = Vector2.RIGHT
velocity = direction * 100
move_and_slide()