any idea to getting mouse position in a screen continuously
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
any idea to getting mouse position in a screen continuously
hello guys, any idea to getting mouse position in a screen continuously?
Re: any idea to getting mouse position in a screen continuously
https://www.renpy.org/doc/html/other.ht ... _mouse_pos
renpy.get_mouse_pos()
If you watch renpy.get_mouse_pos() in the console (shift+O), it updates whenever the mouse button is released. So if I click and drag, it gives me the ending position. You can assign the coordinates to separate variables like
x, y = renpy.get_mouse_pos()
or
x = renpy.get_mouse_pos()[0]
y = renpy.get_mouse_pos()[1]
renpy.get_mouse_pos()
If you watch renpy.get_mouse_pos() in the console (shift+O), it updates whenever the mouse button is released. So if I click and drag, it gives me the ending position. You can assign the coordinates to separate variables like
x, y = renpy.get_mouse_pos()
or
x = renpy.get_mouse_pos()[0]
y = renpy.get_mouse_pos()[1]
Renpy textbook (in Russian). https://disk.yandex.ru/i/httNEajU7iFWHA (all information is out of date) Update 22.06.18
Sawa - a game of the Drow Nation
Honest Critique
Poses in visual novels, or how to hold a character properly in the frame
Help save articles to the webarchive. [/color]
Sawa - a game of the Drow Nation
Honest Critique
Poses in visual novels, or how to hold a character properly in the frame
Help save articles to the webarchive. [/color]
Who is online
Users browsing this forum: Bing [Bot]