Show different mouse cursor on get_global_mouse_position

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By TheCoinCollector

Im trying to make the mouse cursor change depending on where is located on the screen.

I only need it to change in relation to the X axis.
I have tried several ways but without luck.
Is there a way that is possible ?

    extends Sprite
onready var Arrow = get_node("Arrow")
onready var LeftArrow = get_node("Left Arrow")
onready var RightArrow = get_node("Right Arrow")

var MainMouse = Arrow
var LeftMouse = LeftArrow
var RightMouse = RightArrow

func _ready():
	pass
	
func _process(delta):
	position = get_global_mouse_position()
	
	
func _input(event):
	
   # Mouse in viewport coordinates.
	if event is InputEventMouseMotion and event.position > Vector2(1600,0):
		print("Mouse Motion at: ", event.position)
		MainMouse.visible = true
		LeftMouse.visible = false
		RightMouse.visible = false

	elif event is InputEventMouseMotion and event.position > Vector2(200,''):
		pass
#		MainMouse.visible = false
#		LeftMouse.visible = false
#		RightMouse.visible = false
	elif event is InputEventMouseMotion and event.position > Vector2(200,0):
		pass
#		MainMouse.visible = false
#		LeftMouse.visible = false
#		RightMouse.visible = false
	

Scene with script

:bust_in_silhouette: Reply From: bloqm

Perhaps this will help: Customizing the mouse cursor — Godot Engine (3.5) documentation in English

I have already added this but unfortunately, it only works with static png.
I wanted to make the animated arrow that is different depending if you are on the sides or if you are in the center using a mouse.tscn as each of the 3 mouse cursor have animation.

I managed to make the animation work for 1 mouse cursor, but I’m not able to make it change to any of the other two :cry:

TheCoinCollector | 2022-05-27 08:00