Mouse Position Not Updating

JellyNeckJellyNeck Posts: 4Member

I'm warping my mouse to a player tile origin. This works fine but, the mouse position does not update immediately.

It takes several, _process(delta), cycles to update. Is this a bug or am I doing something wrong

print(get_global_mouse_position().x)

Input.warp_mouse_position(get_viewport_transform() * get_global_transform() * Player[Block].position)

_process(delta)

print(get_global_mouse_position().x) # same position as above ??

Answers

Sign In or Register to comment.