Godot-RTS-Template/UI/hover.gd

12 lines
355 B
GDScript

extends Control
# 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:
var mouse = get_viewport().get_mouse_position() + Vector2(25,10) #magic number
position = mouse