godot-ultimate-tutorial/scenes/projectiles/laser.gd

8 lines
144 B
GDScript3
Raw Normal View History

2023-08-15 20:51:29 +00:00
extends Area2D
@export var speed: int = 1000
var direction: Vector2 = Vector2.UP
func _process(delta):
position += direction * speed * delta