I don't know if it is a bug repaired or it's my computer's own problem...
####################################################################################
I use "renpy.set_mouse_pos(x,y)" and then use "(nx,ny) = renpy.get_mouse_pos()" immediately, expecting "nx = x" and "ny = y". However, I get "nx = x-1" and "ny = y-1". I test for different (x,y) and it seems "nx = x" only happens when "x = 960" (my screen width is 1920), under other situations it's always "nx = x-1" and "ny = y-1".
I don't know if it's a bug or it's my own problem?
Sorry my English is poor. Code is like below:
Code: Select all
label start:
pause 5.0
$ renpy.set_mouse_pos(100,100)
"Use space, don't move your mouse."
$ (nx,ny) = renpy.get_mouse_pos()
"(nx,ny) is ([nx],[ny])!"