StickerClone/core/Cursor.tscn
2024-07-25 14:08:44 +02:00

36 lines
1,013 B
Text

[gd_scene load_steps=4 format=3 uid="uid://524sv8spw6go"]
[ext_resource type="Texture2D" uid="uid://docoki1q4vvfh" path="res://textures/atlas/SPRT_Hand.png" id="1_va1hk"]
[sub_resource type="GDScript" id="GDScript_h2l04"]
script/source = "extends Node2D
const Speed:float = 900
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
var mouse = get_viewport().get_mouse_position()
var old_pos
if (mouse != old_pos):
position = mouse
old_pos = position
"
[sub_resource type="AtlasTexture" id="AtlasTexture_n2i6f"]
atlas = ExtResource("1_va1hk")
region = Rect2(0, 0, 256, 256)
[node name="Cursor" type="Node2D"]
top_level = true
script = SubResource("GDScript_h2l04")
[node name="Sprite2D" type="Sprite2D" parent="."]
scale = Vector2(0.5, 0.5)
texture = SubResource("AtlasTexture_n2i6f")
centered = false
offset = Vector2(-23.615, -235.42)