1
Fork 0
mirror of https://github.com/Cookie-CHR/LD54-SPAce-ltd.git synced 2024-11-22 07:24:18 +00:00
space-ltd/Components/sprite_follow_mouse.gd

12 lines
204 B
GDScript3
Raw Normal View History

extends Area2D
@export var type = "planet"
@onready var sprite = $Sprite2D
func _ready():
sprite.texture = Diction.texture[type]
func _process(_delta):
global_position = get_global_mouse_position()