super_space_game/marker_2d.gd

12 lines
305 B
GDScript3
Raw Permalink Normal View History

extends Marker2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
global_position = get_global_mouse_position()