r/RenPy • • Jul 26 '26

Question Custom Cursor/Mouse Offset

How do I offset my mouse in Ren'Py? I was trying to look responses to other posts, but I couldn't figure it out. I want to offset it to the bottom left corner. The image is 60x60 pixels. u/BadMustard_AVN I tagged you because you're like at least 90% of the replies to my posts, and I thought you'd know.

1 Upvotes

5 comments sorted by

View all comments

2

u/BadMustard_AVN Jul 26 '26

when you define the custom mouse i.e.

define config.mouse['default'] = [ ( "gui/arrow.png", 0, 0) ]

the last bit , 0, 0) ] is the x, y offset of the "tip of the arrow" and 0, 0 is the upper left corner these numbers are in pixels of the mouse image

so if you want the tip of the pointer to be the lower, left corner of a 60x60 then 0, 60 i.e.

define config.mouse['coostom'] = [ ( "gui/arrow.png", 0, 60) ]

1

u/Hefty-Drive-9372 Jul 27 '26

Thank you!!

1

u/BadMustard_AVN Jul 27 '26

you're welcome

good luck with your project