![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | ReiKisaragi |
I find this : https://www.gitmemory.com/issue/godotengine/godot-docs/4266/742354846
I want workaround.
Sorry, I’m not good at English.
![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | ReiKisaragi |
I find this : https://www.gitmemory.com/issue/godotengine/godot-docs/4266/742354846
I want workaround.
Sorry, I’m not good at English.
![]() |
Reply From: | lewis glasgow |
the only thing i can think of is this:
func _process(delta):
var mouse_pos = get_global_mouse_position()
var size = $"mouse that enters node".get_rect().size
var pos = $"mouse that enters node".global_position
if pos.x <= mouse_pos.x and mouse_pos.x < mouse_pos.x+size.x:
if pos.y <= mouse_pos.y and mouse_pos.y < mouse_pos.x+size.y:
your function()