Mouse cursor invisible on mobile

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
Imaculata
Newbie
Posts: 1
Joined: Mon May 03, 2021 8:31 am
Contact:

Mouse cursor invisible on mobile

#1 Post 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.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Mouse cursor invisible on mobile

#2 Post 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.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: No registered users