Page 1 of 1

Mouse cursor invisible on mobile

Posted: Thu May 06, 2021 9:21 am
by Imaculata
After updating to the latest version of Ren'py, the mouse cursor is no longer visible on mobile (Android).
Was anything changed about mouse behavior in the last few updates that could be the cause of this?

I upgraded from a few versions back, so it might not even be the latest version of Ren'py that is responsible.
The game has several different mouse cursors configured in "script.rpy", through config.mouse, as seen below:

Code: Select all

if renpy.mobile:
        $ config.mouse = {
            "default" : [("mouse.png", 0,0)],
            "talk_mouse" : [("images/talk_mouse.png", 42,210)], # mobile: 42, 210 || PC: 14,67
} 
else:
        $ config.mouse = {
"default" : [("mouse.png", 0,0)],
            "talk_mouse" : [("images/talk_mouse.png", 14,67)], # mobile: 42, 210 || PC: 14,67
}
These different mouse cursors are then called upon in screens during the game for various interactions, as below:

Code: Select all

imagebutton:
        idle "buttonname"
        mouse "talk_mouse"
        action Jump("locationname")
        xpos 268
        ypos 522
I'm mentioning the way the mouse is being changed, in case we're doing it wrong.

Re: Mouse cursor invisible on mobile

Posted: Thu May 06, 2021 4:13 pm
by Imperf3kt
Yes, there gave been a number of improvements related to mouse cursors in recent versions.
The next version of renpy should include something called MouseDisplayable (I think thats what it was called) that may work better for you.